Documentation
¶
Index ¶
- Variables
- func CleanStep(cents int64, cur string) int64
- func Convert(cents int64, from, to string) (int64, float64, bool)
- func ConvertAndFormat(cents int64, from, to string) string
- func Default() string
- func FetchERAPI(base string) (map[string]float64, error)
- func Format(cents int64, code string) string
- func Known() []string
- func Normalize(raw string) string
- func Rate(from, to string) (float64, bool)
- func Refresh() error
- func RefreshFor(raw string) error
- func Reset()
- func StrictRate(from, to string) (float64, error)
- func Supported() []string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FreshFor = 12 * time.Hour MaxStale = 72 * time.Hour RetryAfter = 5 * time.Minute BaseCurrent = func() string { return "USD" } Fetch = FetchERAPI )
View Source
var Fallback = []string{"USD", "BRL", "EUR", "GBP", "CAD"}
Functions ¶
func ConvertAndFormat ¶
func RefreshFor ¶
func StrictRate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.