Documentation ¶
Index ¶
- type JSONValue
- func (m JSONValue) GetBool(keys ...string) (bool, error)
- func (m JSONValue) GetFloat(keys ...string) (float64, error)
- func (m JSONValue) GetInt(keys ...string) (int, error)
- func (m JSONValue) GetInt64(keys ...string) (int64, error)
- func (m JSONValue) GetString(keys ...string) (string, error)
- func (m JSONValue) MarshalJSON() ([]byte, error)
- func (m JSONValue) MustBool(keys ...string) bool
- func (m JSONValue) MustFloat(keys ...string) float64
- func (m JSONValue) MustInt(keys ...string) int
- func (m JSONValue) MustInt64(keys ...string) int64
- func (m JSONValue) MustString(keys ...string) string
- func (m *JSONValue) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONValue ¶
type JSONValue []byte
JSONValue is a raw encoded JSON value. It implements Marshaller and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding.
func (JSONValue) MarshalJSON ¶
MarshalJSON returns m as the JSON encoding of m.
func (JSONValue) MustString ¶
func (*JSONValue) UnmarshalJSON ¶
UnmarshalJSON sets *m to a copy of data.
Click to show internal directories.
Click to hide internal directories.