go-tour/slices.go
2020-02-04 21:44:36 -06:00

11 lines
135 B
Go

package main
import "fmt"
func main() {
primes := [6]int{2, 3, 5, 7, 11, 13}
var s []int = primes[1:4]
fmt.Println(s)
}