Per the Go spec[1], an identifier consists of a Unicode letter followed by zero or more Unicode letters or digits. The character పే is in the Unicode category nonspacing mark rather than the category letter.
If you choose a Telugu letter then your code compiles as expected[2]. [1] - https://go.dev/ref/spec#Identifiers [2] - https://play.golang.com/p/E7Qbl7uueyO On Sunday, November 6, 2022 at 1:02:20 AM UTC-4 nikhil...@gmail.com wrote: > Hi, > > https://play.golang.com/p/uXOgD0PNc-p > > I was trying to declare unicode variable name as Go supports it. > The language I used is Telugu. It's corresponding chart ( > https://unicode.org/charts/PDF/U0C00.pdf) > > But I get the compilation issue. Am I missing anything ? > If I write Japanese variable name it works. What is the difference? > > Thank you > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/25aeab4e-159a-44b8-bf4a-6a0d070e3166n%40googlegroups.com.