// Chapter 22 example: this file compiles, then crashes while running, on // purpose. Assigning past the end of a slice does not make it grow. // Run with: go run exercises/22/04-past-the-end.go package main import "fmt" func main() { fruits := []string{"apple", "banana", "cherry"} fmt.Println(len(fruits)) fruits[3] = "date" fmt.Println(fruits) }