currency

package module
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 3 Imported by: 0

README

Go Report Card

go-currencies

Lightweight lookup over ISO-4217 codes

Documentation

Overview

This code is auto-generated; DO NOT EDIT.

This code is auto-generated by github.com/mikekonan/go-currencies; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByCode

func ByCode(code Code) (c currency, ok bool)

ByCode lookup for currency type by code

func ByCodeErr added in v1.0.5

func ByCodeErr(code Code) (c currency, err error)

ByCodeErr lookup for currency type by code

func ByCodeStr added in v1.0.5

func ByCodeStr(code string) (c currency, ok bool)

ByCodeStr lookup for currency type by code

func ByCodeStrErr added in v1.0.5

func ByCodeStrErr(code string) (c currency, err error)

ByCodeStrErr lookup for currency type by code

func ByCountry

func ByCountry(country Country) (c currencies, ok bool)

ByCountry lookup for currency type by country

func ByCountryErr added in v1.0.5

func ByCountryErr(country Country) (c currencies, err error)

ByCountryErr lookup for currencies type by country

func ByCountryStr added in v1.0.5

func ByCountryStr(country string) (c currencies, ok bool)

ByCountryStr lookup for currencies type by country

func ByCountryStrErr added in v1.0.5

func ByCountryStrErr(country string) (c currencies, err error)

ByCountryStrErr lookup for currencies type by country

func ByCurrency

func ByCurrency(currency Currency) (c currency, ok bool)

ByCurrency lookup for currency type by currency

func ByCurrencyErr added in v1.0.5

func ByCurrencyErr(currencyStr Currency) (c currency, err error)

ByCurrencyErr lookup for currencies type by code

func ByCurrencyStr added in v1.0.5

func ByCurrencyStr(currency string) (c currency, ok bool)

ByCurrencyStr lookup for currency type by currency

func ByCurrencyStrErr added in v1.0.5

func ByCurrencyStrErr(currencyStr string) (c currency, err error)

ByCurrencyStrErr lookup for currency type by currency

func ByNumber

func ByNumber(number Number) (c currency, ok bool)

ByNumber lookup for currency type by number

func ByNumberErr added in v1.0.5

func ByNumberErr(number Number) (c currency, err error)

ByNumberErr lookup for currencies type by number

func ByNumberStr added in v1.0.5

func ByNumberStr(number string) (c currency, ok bool)

ByNumberStr lookup for currency type by number

func ByNumberStrErr added in v1.0.5

func ByNumberStrErr(number string) (c currency, err error)

ByNumberStrErr lookup for currency type by number

Types

type Code added in v1.0.1

type Code string

Code represents a code type from ISO-4217

func (Code) IsSet added in v1.0.2

func (code Code) IsSet() bool

IsSet indicates if Code is set

func (Code) String added in v1.0.4

func (code Code) String() string

String implementation of Stringer interface

func (*Code) UnmarshalJSON added in v1.0.5

func (code *Code) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for Code

func (Code) Validate added in v1.0.1

func (code Code) Validate(_ interface{}) error

Validate implementation of ozzo-validation Validate interface

func (Code) Value added in v1.0.4

func (code Code) Value() (value driver.Value, err error)

Value implementation of driver.Valuer

type Countries added in v1.0.3

type Countries []Country

func (Countries) IsCountryIn added in v1.0.3

func (countries Countries) IsCountryIn(country string) bool

type Country added in v1.0.1

type Country string

Country represents a country type from ISO-4217

func (Country) IsSet added in v1.0.2

func (country Country) IsSet() bool

IsSet indicates if Country is set

func (Country) String added in v1.0.4

func (country Country) String() string

String implementation of Stringer interface

func (*Country) UnmarshalJSON added in v1.0.5

func (country *Country) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for Country

func (Country) Validate added in v1.0.1

func (country Country) Validate(_ interface{}) error

Validate implementation of ozzo-validation Validate interface

func (Country) Value added in v1.0.4

func (country Country) Value() (value driver.Value, err error)

Value implementation of driver.Valuer

type Currency added in v1.0.1

type Currency string

Currency represents a currency type from ISO-4217

func (Currency) IsSet added in v1.0.2

func (currency Currency) IsSet() bool

IsSet indicates if Currency is set

func (Currency) String added in v1.0.4

func (currency Currency) String() string

String implementation of Stringer interface

func (*Currency) UnmarshalJSON added in v1.0.5

func (currency *Currency) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for Currency

func (Currency) Validate added in v1.0.1

func (currency Currency) Validate(_ interface{}) error

Validate implementation of ozzo-validation Validate interface

func (Currency) Value added in v1.0.4

func (currency Currency) Value() (value driver.Value, err error)

Value implementation of driver.Valuer

type Number added in v1.0.1

type Number string

Number represents a number type from ISO-4217

func (Number) IsSet added in v1.0.2

func (number Number) IsSet() bool

IsSet indicates if Number is set

func (Number) String added in v1.0.4

func (number Number) String() string

String implementation of Stringer interface

func (*Number) UnmarshalJSON added in v1.0.5

func (number *Number) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshall implementation for Number

func (Number) Validate added in v1.0.1

func (number Number) Validate(_ interface{}) error

Validate implementation of ozzo-validation Validate interface

func (Number) Value added in v1.0.4

func (number Number) Value() (value driver.Value, err error)

Value implementation of driver.Valuer

Jump to

Keyboard shortcuts

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