Golang unicode issue

I was working on problem 345 and noticed weird behavior in the processing of strings that contained an ampersand. Regardless of how I tried to format the output, ampersand always printed as '\u0026'.

Even when I didn't modify or convert the string this was the case.

e,g,

func reverseVowels(s string) string { return s }

Custom testcase string = "&"

Comments (2)