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 MustBigIntFromString ¶
MustBigIntFromString provides a helper function to return a big.Int 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 nil
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".