// when one of the low:high indices are omitted,
// it defaults to 0:length.
package main
import "fmt"
func main() {
a := []int{2, 3, 5, 7, 11, 13}
fmt.Println(a)
a = a[1:4]
fmt.Println(a)
a = a[:5]
fmt.Println(a)
a = a[:]
fmt.Println(a)
}
To embed this program on your website, copy the following code and paste it into your website's HTML: