declaring a slice with values in golang code example Example: create slice golang b := [2]string{"Penn", "Teller"}