Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FixedFormatter ¶
type FixedFormatter struct {
// contains filtered or unexported fields
}
FixedFormatter holds currency formatting configuration.
func NewFixedFormatter ¶
func NewFixedFormatter(symbol string, precision, factor int, thousandSep, decimalSep, format string) FixedFormatter
NewFixedFormatter creates a new currency formatter with the specified configuration.
func (FixedFormatter) Format ¶
func (cf FixedFormatter) Format(amount int64) string
Format formats a monetary amount based on fixed point integer of the currency.
Click to show internal directories.
Click to hide internal directories.