currency

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AUD = &Currency{Code: "AUD", CnName: "澳币"}
	CAD = &Currency{Code: "CAD", CnName: "加拿大元/加币"}
	CHF = &Currency{Code: "CHF", CnName: "瑞士法郎"}
	CNY = &Currency{Code: "CNY", CnName: "人民币"}
	CZK = &Currency{Code: "CZK", CnName: "捷克克朗"}
	DKK = &Currency{Code: "DKK", CnName: "丹麦克朗"}
	EUR = &Currency{Code: "EUR", CnName: "欧元"}
	GBP = &Currency{Code: "GBP", CnName: "英镑"}
	HKD = &Currency{Code: "HKD", CnName: "港币"}
	HUF = &Currency{Code: "HUF", CnName: "匈牙利福林"}
	ILS = &Currency{Code: "ILS", CnName: "以色列谢克尔"}
	JPY = &Currency{Code: "JPY", CnName: "日元"}
	KRW = &Currency{Code: "KRW", CnName: "韩元"}
	MXN = &Currency{Code: "MXN", CnName: "墨西哥比索"}
	NOK = &Currency{Code: "NOK", CnName: "挪威克朗"}
	NZD = &Currency{Code: "NZD", CnName: "新西兰元"}
	PLN = &Currency{Code: "PLN", CnName: "波兰兹罗提"}
	RON = &Currency{Code: "RON", CnName: "罗马尼亚列伊"}
	SEK = &Currency{Code: "SEK", CnName: "瑞典克朗"}
	SGD = &Currency{Code: "SGD", CnName: "新加坡元/新币"}
	THB = &Currency{Code: "THB", CnName: "泰铢"}
	USD = &Currency{Code: "USD", CnName: "美元"}
	ZAR = &Currency{Code: "ZAR", CnName: "兰特"}
)

Functions

This section is empty.

Types

type Currency

type Currency struct {
	Code   string
	CnName string
}

func GetByCode

func GetByCode(code string) (*Currency, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL