Answers for "rune array to string go"

Go
0

how to convert array of rune to string in go

s := string([]rune{'\u0041', '\u0042', '\u0043', '\u20AC', -1})
fmt.Println(s) // ABC€�
Posted by: Guest on August-24-2021
0

go string to rune array

[]rune(str)
Posted by: Guest on May-12-2021

Browse Popular Code Answers by Language