Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHistoricalData ¶
GetHistoricalData gathers history data
Types ¶
type By ¶
type By func(h1, h2 *ExchangeHistory) bool
By is the type of a "less" function that defines the ordering of its ExchangeHistory arguments.
func (By) Sort ¶
func (by By) Sort(history []ExchangeHistory)
Sort is a method on the function type, By, that sorts the argument slice according to the function.
type Exchange ¶
type Exchange struct { Source string SourceIssuer string Destination string DestinationIssuer string History []ExchangeHistory }
Exchange holds the exchange rates from source to destination
type ExchangeHistory ¶
ExchangeHistory holds the history of exchange rates
Click to show internal directories.
Click to hide internal directories.