You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
632 B
Go

package consts
type CurrencyUnit struct {
Id int64 `json:"id"`
Unit string `json:"unit"`
}
const (
IdUSD = iota + 1
IdCNY
IdRUB
IdEUR
IdGBP
IdKRW
IdFR
IdTRY
IdTSAR
IdRs
IdTHB
)
var Currency = []CurrencyUnit{
{
Id: IdUSD,
Unit: "$",
},
{
Id: IdCNY,
Unit: "¥",
},
{
Id: IdRUB,
Unit: "₽",
},
{
Id: IdEUR,
Unit: "€",
},
{
Id: IdGBP,
Unit: "£",
},
{
Id: IdKRW,
Unit: "₩",
},
{
Id: IdFR,
Unit: "Fr",
},
{
Id: IdTRY,
Unit: "₤",
},
{
Id: IdTSAR,
Unit: "ر.س",
},
{
Id: IdRs,
Unit: "₨",
},
{
Id: IdTHB,
Unit: "฿",
},
}