Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewTimeFromString ¶
MustNewTimeFromString returns an instance of time.Time from a string formatted as "2006-01-02T15:04:05Z07:00" or panics. Avoid using this function in production code.
func MustTimeFromString ¶
MustTimeFromString returns a time.Time from a string formatted as "2006-01-02T15:04:05Z07:00" or panics. Avoid using this function in production code.
Types ¶
type BigInt ¶
BigInt is a wrapper around big.Int that allows for JSON marshaling a big integer as a string.
func BigIntFromString ¶
BigIntFromString returns a BigInt from a string The string is assumed to be base 10 and if it is not a valid big.Int then the function will return an error
func MustBigIntFromString ¶
MustBigIntFromString returns an instance of BigInt from a string The string is assumed to be base 10 and if it is not a valid big.Int then the function panics. Avoid using this function in production code.
func MustNewBigIntFromString ¶
MustNewBigIntFromString returns an instance of BigInt from a string The string is assumed to be base 10 and if it is not a valid big.Int then the function panics. Avoid using this function in production code.
func NewBigIntFromString ¶
NewBigIntFromString returns an instance of BigInt from a string The string is assumed to be base 10 and if it is not a valid big.Int then the function will return an error
func (BigInt) MarshalJSON ¶
func (*BigInt) UnmarshalJSON ¶
type Date ¶
Date is a wrapper around time.Time that allows for JSON marshaling a date string formatted as "2006-01-02".
func DateFromString ¶
DateFromString returns a Date from a string formatted as "2006-01-02".
func DateFromTime ¶
DateFromTime returns a Date from a time.Time.
func MustDateFromString ¶
MustDateFromString returns a Date from a string formatted as "2006-01-02" or panics. Avoid using this function in production code.
func MustNewDateFromString ¶
MustNewDateFromString returns an instance of Date from a string formatted as "2006-01-02" or panics. Avoid using this function in production code.
func NewDateFromString ¶
NewDateFromString returns an instance of Date from a string formatted as "2006-01-02".
func (Date) MarshalJSON ¶
func (*Date) UnmarshalJSON ¶
type Decimal ¶
Decimal is a wrapper around decimal.Big that allows for JSON marshaling a decimal as a JSON number.
func DecimalFromString ¶
DecimalFromString returns a Decimal from a string
func MustDecimalFromString ¶
MustDecimalFromString returns an instance of Decimal from a string Avoid using this function in production code.
func MustNewDecimalFromString ¶
MustNewDecimalFromString returns an instance of Decimal from a string Avoid using this function in production code.
func NewDecimalFromString ¶
NewDecimalFromString returns an instance of Decimal from a string