Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalRoot ¶
func RegisterUnion ¶
func RegisterUnion(typ reflect.Type, discriminator string, variants ...UnionVariant)
func Unmarshal ¶
Unmarshal is similar to encoding/json.Unmarshal and parses the JSON-encoded data and stores it in the given pointer.
func UnmarshalRoot ¶
UnmarshalRoot is like Unmarshal, but doesn't try to call MarshalJSON on the root element. Useful if a struct's UnmarshalJSON is overrode to use the behavior of this encoder versus the standard library.
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.