Source file tour/moretypes/slices.go

     1  //go:build OMIT
     2  
     3  package main
     4  
     5  import "fmt"
     6  
     7  func main() {
     8  	primes := [6]int{2, 3, 5, 7, 11, 13}
     9  
    10  	var s []int = primes[1:4]
    11  	fmt.Println(s)
    12  }
    13  

View as plain text