use ISO code for Mexican peso (#25)

This commit is contained in:
Pavel 2021-03-25 17:20:41 +03:00 committed by GitHub
parent 6ae7bdc9a3
commit 92cf5fa5f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,6 @@ var defaultCurrencies = map[string]string{
"cop": "COL$", "cop": "COL$",
"crc": "₡", "crc": "₡",
"cup": "$MN", "cup": "$MN",
"mxn": "NP$",
"nio": "C$", "nio": "C$",
"pab": "B/", "pab": "B/",
"pyg": "₲", "pyg": "₲",

View File

@ -252,6 +252,7 @@ func TestUtils_GetCurrencySymbol(t *testing.T) {
} }
assert.Equal(t, "XAG", GetCurrencySymbol("xag")) assert.Equal(t, "XAG", GetCurrencySymbol("xag"))
assert.Equal(t, "MXN", GetCurrencySymbol("mxn"))
} }
func TestUtils_ReplaceMarkdownSymbols(t *testing.T) { func TestUtils_ReplaceMarkdownSymbols(t *testing.T) {

2
go.mod
View File

@ -5,7 +5,7 @@ go 1.12
require ( require (
github.com/DATA-DOG/go-sqlmock v1.3.3 github.com/DATA-DOG/go-sqlmock v1.3.3
github.com/aws/aws-sdk-go v1.25.14 github.com/aws/aws-sdk-go v1.25.14
github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 // indirect
github.com/denisenkom/go-mssqldb v0.0.0-20190830225923-3302f0226fbd // indirect github.com/denisenkom/go-mssqldb v0.0.0-20190830225923-3302f0226fbd // indirect
github.com/getsentry/raven-go v0.2.0 github.com/getsentry/raven-go v0.2.0
github.com/gin-contrib/multitemplate v0.0.0-20190914010127-bba2ccfe37ec github.com/gin-contrib/multitemplate v0.0.0-20190914010127-bba2ccfe37ec