Convert byte array to string

Slice the array?!?! Yeah, okay, fine, Go likes slices. How do you perform this mystical operation? It’s easy, if you know the magic word. Line that failed:

fmt.Printf("%s\n", string(outes[i]))

Line that works:

fmt.Printf("%s\n", string(outes[i][:]))

Or, to simplify:

fmt.Println(string(outes[i][:]))