Convert between strings and byte slices:
s := "Hello"
b := []byte(s) // convert to bytes
s2 := string(b) // convert back to string
These conversions copy the data. Strings are immutable, but byte slices aren't, so Go must copy to maintain string immutability. Be mindful of this cost with large strings.