service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateLayout = "2006-01-02"
)

Variables

This section is empty.

Functions

func Output

func Output(format string, v Outputable) error

Types

type ExchangeRatesDTO

type ExchangeRatesDTO struct {
	Table    string
	Currency string
	Code     string
	Rates    []RateDTO
}

type Outputable

type Outputable interface {
	// contains filtered or unexported methods
}

type Rate

type Rate struct {
	RateDTO
	Table    string
	Currency string
	Code     string
}

func GetRate

func GetRate(currency, table string, date time.Time) (*Rate, error)

type RateDTO

type RateDTO struct {
	No            string
	EffectiveDate string
	Mid           float32
	Bid           float32
	Ask           float32
}

Jump to

Keyboard shortcuts

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