Sign in
go
/
website
/
7257a64727500a2e1696fdcb511cfe5340f1ccb1
/
.
/
_content
/
tour
/
moretypes
/
slice-bounds.go
blob: 1ba396372e645b799e1454cda75c173777e052db [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
func main() {
s := []int{2, 3, 5, 7, 11, 13}
s = s[1:4]
fmt.Println(s)
s = s[:2]
fmt.Println(s)
s = s[1:]
fmt.Println(s)
}