If you run fmt.Println(\"\\u554a\"), it shows \'啊\'.
fmt.Println(\"\\u554a\")
But how to get unicode-style-string \\u554a from a rune \'啊\' ?
\\u554a
This would do the job..
package main import ( "fmt" ) func main() { str := fmt.Sprintf("%s", []byte{0x80}) fmt.Println(str) }