Documentation
¶
Index ¶
- func Encode(w io.Writer, v any) (err error)
- func Marshal(v any) (data []byte, err error)
- func NumberEqual(numberExp, numberGot Number) (eq bool)
- func Unmarshal(input []byte, output any) (err error)
- func UnmarshalString(input string, output any) (err error)
- type Array
- type Bool
- type Number
- type Object
- type RawMessage
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NumberEqual ¶
NumberEqual is comparing the string representation of the json.Number. It fails to compare different formats, 1e10 != 10000000000, although it is the same mathematical value.
func UnmarshalString ¶
UnmarshalString is a wrapper for Unmarshal for string input
Types ¶
type RawMessage ¶
type RawMessage = json.RawMessage
Click to show internal directories.
Click to hide internal directories.