If you run fmt.Println(\"\\u554a\"), it shows \'啊\'.
fmt.Println(\"\\u554a\")
But how to get unicode-style-string \\u554a from a rune \'啊\' ?
\\u554a
IMHO, it should be better:
func RuneToAscii(r rune) string { if r < 128 { return string(r) } else { return "\\u" + strconv.FormatInt(int64(r), 16) } }