Documentation ¶
Index ¶
- func MarshalToString(v interface{}) (string, error)
- func MustMarshal(v interface{}) []byte
- func MustMarshalToString(v interface{}) string
- func MustUnmarshal(b []byte, v interface{})
- func MustUnmarshalFromString(s string, v interface{})
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalFromString(str string, v interface{}) error
- type NumericString
- type Uint16
- type Uint32
- type Uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalToString ¶ added in v1.3.9
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{})
func UnmarshalFromString ¶ added in v1.3.9
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 NewNumericStringFromBigInt ¶ added in v1.7.38
func NewNumericStringFromBigInt(v *big.Int) *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.