RSS 2025-12-06 03:02
libraries

Parse locally formatted numbers?

来源:Reddit r/golang

Is there a way to parse strings which contain locally formatted numbers to integer/float using the standard packages?

With message.Printer I can format integer and float numbers to a locally formatted string based on a language.Tag.

But I need it the other way around, so I have a string containing a locally formatted number which I need to convert to a int/float based on a language.Tag.

submitted by /u/Sternis
[link] [comments]