currency

package
v0.32.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: AGPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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