Thanks a lot Ivan! FTR: https://play.golang.org/p/tYfn9L12vD and also, https://github.com/suntong/lang/blob/master/lang/Go/src/text/Rune.go
On Sat, Apr 22, 2017 at 10:42 PM, Ivan Kurnosov <zerk...@gmail.com> wrote: > 1. Convert it to a number > 2. Use `rune()` > > > On Sunday, April 23, 2017 at 6:51:09 AM UTC+12, Tong Sun wrote: >> >> Hi, >> >> Given a unicode code string, be it "4e16", or "0x4e16", or "u4e16", how >> to turn it into a single char rune? >> >> You can finish the code at https://play.golang.org/p/AFIEz3eJVz >> >> Thanks. >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/golang-nuts/U6sTX_6cNb8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.