I had a similar problem and ran across this. This may not work for everyone, but I did this to avoid the problem altogether:
mystrings := []string{"ay", "bee", "see"} longstr := strings.Join(mystrings, "\n") bytes := []byte(longstr)