Versions in this module Expand all Collapse all v0 v0.0.2 Oct 18, 2023 v0.0.1 Oct 18, 2023 Changes in this version + var LocaleInfo map[string]Locale = map[string]Locale + func FormatNumber(value interface{}, precision int, thousand string, decimalStr string) string + func FormatNumberBigDecimal(x *apd.Decimal, precision int, thousand string, decimalStr string) string + func FormatNumberBigFloat(x *big.Float, precision int, thousand string, decimal string) string + func FormatNumberBigRat(x *big.Rat, precision int, thousand string, decimalStr string) string + func FormatNumberDecimal(x decimal.Decimal, precision int, thousand string, decimalStr string) string + func FormatNumberFloat64(x float64, precision int, thousand string, decimalStr string) string + func FormatNumberInt(x int, precision int, thousand string, decimalStr string) string + func UnformatNumber(n string, precision int, currency string) string + type Accounting struct + Decimal string + Format string + FormatNegative string + FormatZero string + Precision int + Symbol string + Thousand string + func DefaultAccounting(symbol string, precision int) *Accounting + func NewAccounting(symbol string, precision int, ...) *Accounting + func (accounting *Accounting) FormatMoney(value interface{}) string + func (accounting *Accounting) FormatMoneyBigDecimal(value *apd.Decimal) string + func (accounting *Accounting) FormatMoneyBigFloat(value *big.Float) string + func (accounting *Accounting) FormatMoneyBigRat(value *big.Rat) string + func (accounting *Accounting) FormatMoneyDecimal(value decimal.Decimal) string + func (accounting *Accounting) FormatMoneyFloat64(value float64) string + func (accounting *Accounting) FormatMoneyInt(value int) string + func (accounting *Accounting) SetDecimalSeparator(str string) + func (accounting *Accounting) SetFormat(str string) + func (accounting *Accounting) SetFormatNegative(str string) + func (accounting *Accounting) SetFormatZero(str string) + func (accounting *Accounting) SetThousandSeparator(str string) + type Locale struct + ComSymbol string + DecSep string + FractionLength int + HTMLSymbol string + Name string + Pre bool + SpaceSep string + ThouSep string + UTFSymbol string