exchanger

package
v0.0.0-...-6350c27 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrencyList = map[string]string{}/* 285 elements not displayed */

CurrencyList ... list of currencies in ISO Format source @ https://raw.githubusercontent.com/umpirsky/currency-list/master/data/en_US/currency.json

CurrencyListArr ... CurrencyList to array of int => interfaces to be used in validation

Functions

func MapKeyArrInterface

func MapKeyArrInterface(m map[string]string) []interface{}

MapKeyArrInterface ... Reverse a map in <value, key>

func NewtheMoneyConverterAPI

func NewtheMoneyConverterAPI(opt map[string]string) *theMoneyConverterAPI

NewtheMoneyConverterAPI ... return new instance of theMoneyConverterAPI

func NewyahooAPI

func NewyahooAPI(opt map[string]string) *yahooAPI

NewyahooAPI ... return new instance of yahooAPI

func ReverseMap

func ReverseMap(m map[string]string) map[string]string

ReverseMap ... Reverse a map in <value, key>

Types

type Exchanger

type Exchanger interface {
	Latest(string, string, ...interface{}) error
	Rate
}

Exchanger ... Exchanger interface

type Rate

type Rate interface {
	GetRateValue() float64
	GetRateDateTime() string
	GetExchangerName() string
}

Rate ... Rate interface

Jump to

Keyboard shortcuts

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