Fixed an apparent conflict in the currency JSON list

This commit is contained in:
Ian Byrd 2019-01-27 23:28:15 +02:00
parent 1221003ca6
commit 49593279d6
No known key found for this signature in database
GPG Key ID: 598F598CA3B8055F

View File

@ -12,12 +12,15 @@ type Currency struct {
SymbolLeft bool `json:"symbol_left"`
SpaceBetween bool `json:"space_between"`
Exp int `json:"exp"`
MinAmount string `json:"min_amount"`
MaxAmount string `json:"max_amount"`
MinAmount interface{} `json:"min_amount"`
MaxAmount interface{} `json:"max_amount"`
}
var SupportedCurrencies = map[string]Currency{}
func init() {
json.Unmarshal([]byte(dataSupportedCurrenciesJSON), &SupportedCurrencies)
err := json.Unmarshal([]byte(dataSupportedCurrenciesJSON), &SupportedCurrencies)
if err != nil {
panic(err)
}
}