-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcurrency_code.go
80 lines (77 loc) · 1.4 KB
/
currency_code.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package currency
type Code string
const (
USD = Code("USD")
AUD = Code("AUD")
DKK = Code("DKK")
EUR = Code("EUR")
GBP = Code("GBP")
CHF = Code("CHF")
SEK = Code("SEK")
CAD = Code("CAD")
KWD = Code("KWD")
NOK = Code("NOK")
SAR = Code("SAR")
JPY = Code("JPY")
BGN = Code("BGN")
RON = Code("RON")
RUB = Code("RUB")
IRR = Code("IRR")
CNY = Code("CNY")
PKR = Code("PKR")
QAR = Code("QAR")
KRW = Code("KRW")
AZN = Code("AZN")
AED = Code("AED")
)
// String returns currency codes' full name.
func (c Code) String() string {
switch c {
case "USD":
return "US Dollar"
case "AUD":
return "AUSTRALIAN DOLLAR"
case "DKK":
return "DANISH KRONE"
case "EUR":
return "EURO"
case "GBP":
return "POUND STERLING"
case "CHF":
return "SWISS FRANK"
case "SEK":
return "SWEDISH KRONA"
case "CAD":
return "CANADIAN DOLLAR"
case "KWD":
return "KUWAITI DINAR"
case "NOK":
return "NORWEGIAN KRONE"
case "SAR":
return "SAUDI RIYAL"
case "JPY":
return "JAPANESE YEN"
case "BGN":
return "BULGARIAN LEV"
case "RON":
return "NEW LEU"
case "RUB":
return "RUSSIAN ROUBLE"
case "IRR":
return "IRANIAN RIAL"
case "CNY":
return "CHINESE RENMINBI"
case "PKR":
return "PAKISTANI RUPEE"
case "QAR":
return "QATARI RIAL"
case "KRW":
return "SOUTH KOREAN WON"
case "AZN":
return "AZERBAIJANI NEW MANAT"
case "AED":
return "UNITED ARAB EMIRATES DIRHAM"
default:
return "Not exist"
}
}