Documentation
¶
Index ¶
Constants ¶
View Source
const FnParseUSD = "ParseUSD"
Variables ¶
View Source
var ErrRange = errors.New("value out of range")
ErrRange indicates that a value is out of range for the target type.
Functions ¶
This section is empty.
Types ¶
type CurrencyError ¶
type CurrencyError struct {
Func string // the failing function (ParseUSD, parseEUR, ...)
Amount string // the input
Err error // the reason the conversion failed (ErrRange, ErrSyntax)
}
A CurrencyError records a failed currency conversion.
func CurrencyErrorFn ¶
func CurrencyErrorFn(fn, str string) *CurrencyError
func (*CurrencyError) Error ¶
func (e *CurrencyError) Error() string
Click to show internal directories.
Click to hide internal directories.