grokify/mogo

View on GitHub
text/currencyutil/currency_codes.go

Summary

Maintainability
A
2 hrs
Test Coverage
package currencyutil

const (
    CurrencyAFN = "AFN" // Afghanistan Afghani
    CurrencyALL = "ALL" // Albania Lek
    CurrencyANG = "ANG" // Netherlands Antilles Guilder
    CurrencyARS = "ARS" // Argentina Peso
    CurrencyAUD = "AUD" // Australia Dollar
    CurrencyAWG = "AWG" // Aruba Guilder
    CurrencyAZN = "AZN" // Azerbaijan New Manat
    CurrencyBAM = "BAM" // Bosnia and Herzegovina Convertible Marka
    CurrencyBBD = "BBD" // Barbados Dollar
    CurrencyBGN = "BGN" // Bulgaria Lev
    CurrencyBHD = "BHD" // Bahrain Dinar
    CurrencyBIF = "BIF" // Burundian Franc
    CurrencyBMD = "BMD" // Bermuda Dollar
    CurrencyBND = "BND" // Brunei Darussalam Dollar
    CurrencyBOB = "BOB" // Bolivia BolĂ­viano
    CurrencyBRL = "BRL" // Brazil Real
    CurrencyBSD = "BSD" // Bahamas Dollar
    CurrencyBTC = "BTC" // Crypto Bitcoin
    CurrencyBWP = "BWP" // Botswana Pula
    CurrencyBYN = "BYN" // Belarus Ruble
    CurrencyBZD = "BZD" // Belize Dollar
    CurrencyCAD = "CAD" // Canada Dollar
    CurrencyCHF = "CHF" // Switzerland Franc
    CurrencyCLP = "CLP" // Chile Peso
    CurrencyCNY = "CNY" // China Yuan Renminbi
    CurrencyCRC = "CRC" // Costa Rica Colon
    CurrencyCUP = "CUP" // Cuba Peso
    CurrencyDJF = "DJF" // Djibouti Franc
    CurrencyDKK = "DKK" // Danish Krone
    CurrencyEGP = "EGP" // Egypt Pound
    CurrencyETH = "ETH" // Crypto Ether
    CurrencyEUR = "EUR" // Eurozone Euro
    CurrencyFKP = "FKP" // Falkland Islands Pound
    CurrencyGBP = "GBP" // United Kingdom Pound
    CurrencyGNF = "GNF" // Guinean Franc
    CurrencyHKD = "HKD" // Hong Kong Dollar
    CurrencyIDR = "IDR" // Indonesian Rupiah
    CurrencyILS = "ILS" // Israel Shekel
    CurrencyINR = "INR" // Indian Rupee
    CurrencyIRR = "IRR" // Iran Rial
    CurrencyJOD = "JOD" // Jordan Dinar
    CurrencyJPY = "JPY" // Japan Yen
    CurrencyKGS = "KGS" // Kyrgyzstan Som
    CurrencyKHR = "KHR" // Cambodia Riel
    CurrencyKMF = "KMF" // Comorian Franc
    CurrencyKPW = "KPW" // North Korea Won
    CurrencyKRW = "KRW" // South Korea Won
    CurrencyKWD = "KWD" // Kuwait Dinar
    CurrencyLKR = "LKR" // Sri Lanka Rupee
    CurrencyLTC = "LTC" // Crypto Litecoin
    CurrencyMGA = "MGA" // Malagasy Ariary
    CurrencyMNT = "MNT" // Mongolia Tughrik
    CurrencyMUR = "MUR" // Mauritius Rupee
    CurrencyMXN = "MXN" // Mexican Peso
    CurrencyMYR = "MYR" // Malaysia Ringgit
    CurrencyNGN = "NGN" // Nigeria Naira
    CurrencyNOK = "NOK" // Norway Krone
    CurrencyNPR = "NPR" // Nepal Rupee
    CurrencyNZD = "NZD" // New Zealand Dollar
    CurrencyOMR = "OMR" // Oman Rial
    CurrencyPHP = "PHP" // Philippines Peso
    CurrencyPKR = "PKR" // Pakistan Rupee
    CurrencyPLN = "PLN" // Poland Zloty
    CurrencyPYG = "PYG" // Paraguayan Guarani
    CurrencyQAR = "QAR" // Qatar Riyal
    CurrencyRON = "RON" // Romania New Leu
    CurrencyRSD = "RSD" // Serbia Dinar
    CurrencyRUB = "RUB" // Russia Ruble
    CurrencyRWF = "RWF" // Rwandan Franc
    CurrencySAR = "SAR" // Saudi Arabia Riyal
    CurrencySCR = "SCR" // Seychelles Rupee
    CurrencySEK = "SEK" // Sweden Krona
    CurrencySGD = "SGD" // Singapore Dollar
    CurrencySYP = "SYP" // Syria Pound
    CurrencyTHB = "THB" // Thailand Baht
    CurrencyTND = "TND" // Tunisia Dinar
    CurrencyTRY = "TRY" // Turkey Lira
    CurrencyTWD = "TWD" // Taiwan Dollar
    CurrencyUAH = "UAH" // Ukraine Hryvnia
    CurrencyUGX = "UGX" // Uganda Shilling
    CurrencyUSD = "USD" // United States Dollar
    CurrencyUZS = "UZS" // Uzbekistan Som
    CurrencyVND = "VND" // Viet Nam Dong
    CurrencyVUV = "VUV" // Vanuatu Vatu
    CurrencyXAF = "XAF" // Central African CFA Franc
    CurrencyXAG = "XAG" // Metal Silver
    CurrencyXAU = "XAU" // Metal Gold
    CurrencyXOF = "XOF" // West African CFA Franc
    CurrencyXPD = "XPD" // Metal Palladium
    CurrencyXPF = "XPF" // CFP Franc
    CurrencyXPT = "XPT" // Metal Platinum
    CurrencyXTS = "XTS" // Testing Testing
    CurrencyXXX = "XXX" // Undefined Undefined
    CurrencyYER = "YER" // Yemen Rial
    CurrencyZAR = "ZAR" // South Africa Rand
)

func CurrencyCodesAll() []string {
    return []string{
        CurrencyAFN, // Afghanistan Afghani
        CurrencyALL, // Albania Lek
        CurrencyANG, // Netherlands Antilles Guilder
        CurrencyARS, // Argentina Peso
        CurrencyAUD, // Australia Dollar
        CurrencyAWG, // Aruba Guilder
        CurrencyAZN, // Azerbaijan New Manat
        CurrencyBAM, // Bosnia and Herzegovina Convertible Marka
        CurrencyBBD, // Barbados Dollar
        CurrencyBGN, // Bulgaria Lev
        CurrencyBHD, // Bahrain Dinar
        CurrencyBIF, // Burundian Franc
        CurrencyBMD, // Bermuda Dollar
        CurrencyBND, // Brunei Darussalam Dollar
        CurrencyBOB, // Bolivia BolĂ­viano
        CurrencyBRL, // Brazil Real
        CurrencyBSD, // Bahamas Dollar
        CurrencyBTC, // Crypto Bitcoin
        CurrencyBWP, // Botswana Pula
        CurrencyBYN, // Belarus Ruble
        CurrencyBZD, // Belize Dollar
        CurrencyCAD, // Canada Dollar
        CurrencyCHF, // Switzerland Franc
        CurrencyCLP, // Chile Peso
        CurrencyCNY, // China Yuan Renminbi
        CurrencyCRC, // Costa Rica Colon
        CurrencyCUP, // Cuba Peso
        CurrencyDJF, // Djibouti Franc
        CurrencyDKK, // Danish Krone
        CurrencyEGP, // Egypt Pound
        CurrencyETH, // Crypto Ether
        CurrencyEUR, // Eurozone Euro
        CurrencyFKP, // Falkland Islands Pound
        CurrencyGBP, // United Kingdom Pound
        CurrencyGNF, // Guinean Franc
        CurrencyHKD, // Hong Kong Dollar
        CurrencyIDR, // Indonesian Rupiah
        CurrencyILS, // Israel Shekel
        CurrencyINR, // Indian Rupee
        CurrencyIRR, // Iran Rial
        CurrencyJOD, // Jordan Dinar
        CurrencyJPY, // Japan Yen
        CurrencyKGS, // Kyrgyzstan Som
        CurrencyKHR, // Cambodia Riel
        CurrencyKMF, // Comorian Franc
        CurrencyKPW, // North Korea Won
        CurrencyKRW, // South Korea Won
        CurrencyKWD, // Kuwait Dinar
        CurrencyLKR, // Sri Lanka Rupee
        CurrencyLTC, // Crypto Litecoin
        CurrencyMGA, // Malagasy Ariary
        CurrencyMNT, // Mongolia Tughrik
        CurrencyMUR, // Mauritius Rupee
        CurrencyMXN, // Mexican Peso
        CurrencyMYR, // Malaysia Ringgit
        CurrencyNGN, // Nigeria Naira
        CurrencyNOK, // Norway Krone
        CurrencyNPR, // Nepal Rupee
        CurrencyNZD, // New Zealand Dollar
        CurrencyOMR, // Oman Rial
        CurrencyPHP, // Philippines Peso
        CurrencyPKR, // Pakistan Rupee
        CurrencyPLN, // Poland Zloty
        CurrencyPYG, // Paraguayan Guarani
        CurrencyQAR, // Qatar Riyal
        CurrencyRON, // Romania New Leu
        CurrencyRSD, // Serbia Dinar
        CurrencyRUB, // Russia Ruble
        CurrencyRWF, // Rwandan Franc
        CurrencySAR, // Saudi Arabia Riyal
        CurrencySCR, // Seychelles Rupee
        CurrencySEK, // Sweden Krona
        CurrencySGD, // Singapore Dollar
        CurrencySYP, // Syria Pound
        CurrencyTHB, // Thailand Baht
        CurrencyTND, // Tunisia Dinar
        CurrencyTRY, // Turkey Lira
        CurrencyTWD, // Taiwan Dollar
        CurrencyUAH, // Ukraine Hryvnia
        CurrencyUGX, // Uganda Shilling
        CurrencyUSD, // United States Dollar
        CurrencyUZS, // Uzbekistan Som
        CurrencyVND, // Viet Nam Dong
        CurrencyVUV, // Vanuatu Vatu
        CurrencyXAF, // Central African CFA Franc
        CurrencyXAG, // Metal Silver
        CurrencyXAU, // Metal Gold
        CurrencyXOF, // West African CFA Franc
        CurrencyXPD, // Metal Palladium
        CurrencyXPF, // CFP Franc
        CurrencyXPT, // Metal Platinum
        CurrencyXTS, // Testing Testing
        CurrencyXXX, // Undefined Undefined
        CurrencyYER, // Yemen Rial
        CurrencyZAR, // South Africa Rand
    }
}