currency

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Currencies

type Currencies map[Currency]float64

type Currency

type Currency string

Format: ISO 4217 (3-letter code) e.g. CHF, EUR, GBP, USD.

func Convert

func Convert(curr string) (Currency, error)

func ConvertBase

func ConvertBase(curr string) Currency

func (Currency) Lower

func (c Currency) Lower() string

func (Currency) String

func (c Currency) String() string

type CurrencyMap

type CurrencyMap struct {
	// contains filtered or unexported fields
}

func NewCurrencyMap

func NewCurrencyMap() CurrencyMap

func (*CurrencyMap) Append

func (c *CurrencyMap) Append(currs Currencies)

func (*CurrencyMap) Extract

func (c *CurrencyMap) Extract() Currencies

Jump to

Keyboard shortcuts

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