Closed razonyang closed 3 weeks ago
How would I use this with the lang.FormatSomething
functions? Each of these functions returns a string. I imagine in some locales you might want 12,3 kb
instead of 12.3 kb
.
Maybe this should be lang.FormatNumberSI
, and possibly create derivatives of lang.FormatNumberCustom
and lang.FormatCurrency
as well.
I suggest closing this PR and opening a proposal to work out the details.
https://en.wikipedia.org/wiki/Metric_prefix
One of use case of mine: a repository card.
Not sure if I put this function into the right place/package.