Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustMarshal ¶
func MustMarshal(v interface{}) []byte
func MustMarshalToString ¶
func MustMarshalToString(v interface{}) string
func MustUnmarshal ¶
func MustUnmarshal(b []byte, v interface{})
func MustUnmarshalFromString ¶
func MustUnmarshalFromString(s string, v interface{})
Types ¶
type NumericString ¶
type NumericString struct {
// contains filtered or unexported fields
}
NumericString is numeric value stored in string representation. It supports JSON unmarshalling from numeric and string.
func NewNumericString ¶
func NewNumericString(v string) (*NumericString, error)
func NewNumericStringFromUint64 ¶
func NewNumericStringFromUint64(v uint64) *NumericString
func (NumericString) MarshalJSON ¶
func (u NumericString) MarshalJSON() ([]byte, error)
func (NumericString) String ¶
func (u NumericString) String() string
func (*NumericString) UnmarshalJSON ¶
func (u *NumericString) UnmarshalJSON(data []byte) error
type Uint16 ¶
type Uint16 struct {
// contains filtered or unexported fields
}
func (Uint16) MarshalJSON ¶
func (*Uint16) UnmarshalJSON ¶
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
func (Uint32) MarshalJSON ¶
func (*Uint32) UnmarshalJSON ¶
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
func NewUint64FromString ¶
func (Uint64) MarshalJSON ¶
func (*Uint64) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.