Documentation ¶
Index ¶
Constants ¶
View Source
const ( AssetsCurrencyCodesFile = "currency_codes.xml" AssetsCurrencyNamesFile = "currency_names.json" CurrencyGenFileName = "currency" SymbolGenFileName = "symbol" CountryGenFileName = "country" NameGenFileName = "name" FuncGenFileName = "func" )
View Source
const SuffixGenFileName = "_gen.go"
Variables ¶
View Source
var ErrHashingContentEqual = errors.New("hash of the generated file is equivalent to the previous version")
Functions ¶
func ReadAssets ¶
func ReadAssets(path string) func(AssetsMapFunc) error
Types ¶
type AssetsMapFunc ¶
type CurrencyCodes ¶
type CurrencyNames ¶
type CurrencyNames struct { Main struct { EnVersion struct { Identity struct { Version struct { ClDRVersion string `json:"_cldrVersion"` } `json:"version"` Language string `json:"language"` Territory string `json:"territory"` } `json:"identity"` Numbers struct { Currencies map[string]struct { DisplayName string `json:"displayName"` Symbol string `json:"symbol"` Sign string `json:"symbol-alt-narrow"` } `json:"currencies"` } `json:"numbers"` } `json:"en-001"` } `json:"main"` }
Click to show internal directories.
Click to hide internal directories.