On Tue, Feb 13, 2018 at 11:19 PM, <prabhakaran.anish1...@gmail.com> wrote: > > I'm a newbee to Golang and am trying to fetch the default server locale. > Can you help me how I can fetch the default server locale in golang? > > In other words, I'm looking for the Java equivalent code in golang i.e > 'Locale.getDefault()'
Go doesn't use locales in the same way that Java does. If you tell us what you want to do with that information, we may be able to help. You may want to look at https://godoc.org/golang.org/x/text . Ian -- 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.