go-tour/slices.go

11 lines
135 B
Go
Raw Normal View History

2020-02-05 03:44:36 +00:00
package main
import "fmt"
func main() {
primes := [6]int{2, 3, 5, 7, 11, 13}
var s []int = primes[1:4]
fmt.Println(s)
}