Documentation ¶
Index ¶
- func FormatIndent(p []byte) ([]byte, error)
- func IsValid(json string) bool
- func Iterate(jsonStr *string, indent bool, iterFn IterFn) error
- func JSONDecode(data []byte, to interface{}) error
- func MarshalAndPrintln(x interface{})
- func MarshalBytes(v interface{}, indent bool) ([]byte, error)
- func MarshalBytesDefault(v interface{}, indent bool) []byte
- func MarshalBytesFast(v easyjson.Marshaler) ([]byte, error)
- func MarshalBytesWithErrFmt(v interface{}, indent bool, errFmt string) []byte
- func MarshalString(v interface{}, indent bool) (string, error)
- func MarshalStringDefault(v interface{}, indent bool) string
- func MarshalStringWithErrFmt(v interface{}, indent bool, errFmt string) string
- func Set(jsonstr string, path []string, val interface{}) (string, error)
- func UnmarshalBytesFast(data []byte, v easyjson.Unmarshaler) error
- type IterFn
- type JifTimestamp
- type JsonValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatIndent ¶
func JSONDecode ¶
JSONDecode decodes JSON data into a structure
func MarshalAndPrintln ¶
func MarshalAndPrintln(x interface{})
func MarshalBytes ¶
func MarshalBytesDefault ¶
func MarshalBytesWithErrFmt ¶
func MarshalString ¶
func MarshalStringDefault ¶
func MarshalStringWithErrFmt ¶
func UnmarshalBytesFast ¶
func UnmarshalBytesFast(data []byte, v easyjson.Unmarshaler) error
Types ¶
type JifTimestamp ¶
Json index friendly timestamp. Why choose format time as nanosecond int64, but not human readable string? time.RFC3339Nano is the only format which can format time with nanosecond accuracy, but it has timezone information in it, when you need create unique index for timestamp in json/jsonb database, same epoch timestamps in different timezone may be considered as different string/index.
func (JifTimestamp) MarshalJSON ¶
func (t JifTimestamp) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.