From beeb1faddf4a4574632c0bdb066eaf4e5a506f19 Mon Sep 17 00:00:00 2001 From: Pablo Reszczynski Date: Tue, 14 Nov 2023 13:07:47 -0300 Subject: [PATCH] feat: add VES currency (#139) * feat: add VES currency * update VEF numeric code to 937 --- constants.go | 1 + currency.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/constants.go b/constants.go index b3e5002..34e3c81 100644 --- a/constants.go +++ b/constants.go @@ -159,6 +159,7 @@ const ( UYU = "UYU" UZS = "UZS" VEF = "VEF" + VES = "VES" VND = "VND" VUV = "VUV" WST = "WST" diff --git a/currency.go b/currency.go index 014aec4..40e77df 100644 --- a/currency.go +++ b/currency.go @@ -202,7 +202,8 @@ var currencies = Currencies{ USD: {Decimal: ".", Thousand: ",", Code: USD, Fraction: 2, NumericCode: "840", Grapheme: "$", Template: "$1"}, UYU: {Decimal: ".", Thousand: ",", Code: UYU, Fraction: 2, NumericCode: "858", Grapheme: "$U", Template: "$1"}, UZS: {Decimal: ".", Thousand: ",", Code: UZS, Fraction: 2, NumericCode: "860", Grapheme: "so\u2019m", Template: "$1"}, - VEF: {Decimal: ".", Thousand: ",", Code: VEF, Fraction: 2, NumericCode: "928", Grapheme: "Bs", Template: "$1"}, + VEF: {Decimal: ".", Thousand: ",", Code: VEF, Fraction: 2, NumericCode: "937", Grapheme: "Bs", Template: "$1"}, + VES: {Decimal: ".", Thousand: ",", Code: VES, Fraction: 2, NumericCode: "928", Grapheme: "Bs.S", Template: "$1"}, VND: {Decimal: ".", Thousand: ",", Code: VND, Fraction: 0, NumericCode: "704", Grapheme: "\u20ab", Template: "1 $"}, VUV: {Decimal: ".", Thousand: ",", Code: VUV, Fraction: 0, NumericCode: "548", Grapheme: "Vt", Template: "$1"}, WST: {Decimal: ".", Thousand: ",", Code: WST, Fraction: 2, NumericCode: "882", Grapheme: "T", Template: "1 $"},