Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalStringMap ¶
MarshalStringMap turns the given string map into a []byte slice that is the JSON encoded version of that map. It will produce the same output as json.Marshal. This includes the keys being sorted lexicographically. Unlike json.Marshal, it does not return an error because the errors json.Marshal could return (e.g. for cyclic data) do not apply.
Types ¶
type Number ¶
type Number int64
Number is an int64 which may be unmarshaled from a JSON string.
func (*Number) UnmarshalJSON ¶
UnmarshalJSON parses data as an integer, whether data is a number or string.
type Time ¶
Time is a convenience type used for unmarshaling a time.Time from a JSON- encoded timestamp in microseconds.
func (*Time) MarshalJSON ¶
MarshalJSON encodes a time.Time as a JSON number of microseconds.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON parses a time.Time from a JSON number of microseconds.