models

package
v0.0.0-...-1a14f6b Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrencyIsSupported

func CurrencyIsSupported(currencyCode string) bool

CurrencyIsSupported searches sorted list of currencies using binary search agorithm

func InitAllSupportedCurrencyList

func InitAllSupportedCurrencyList() error

Types

type Currency

type Currency struct {
	Code string `json:"code"`
	Name string `json:"name"`
}

type CurrencyList

type CurrencyList struct {
	Currencies []Currency `json:"currencies"`
}

func GetAllSupportedCurrencyList

func GetAllSupportedCurrencyList() CurrencyList

Jump to

Keyboard shortcuts

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