Discover Packages
github.com/aaron-hardin/gopher-money
format
package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Nov 10, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package format is used to format currencies.
Can be used to format currencies as string or as a float64 with the correct precision.
Format converts currency to a string with correct symbol and precision.
FormatAs converts currency to a string with correct symbol and precision according to specified format string.
%v is used for value, %s is used for currency symbol
Round returns a float64 with the precision for the currency specified.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.