Documentation ¶
Index ¶
- Constants
- func Decode(m map[string]interface{}, discriminator string, f Factory) (interface{}, error)
- func DecodeInto(m map[string]interface{}, o interface{}, pf PathFactory) (interface{}, error)
- func DecodeIntoWithDefaults(m map[string]interface{}, o interface{}, pf PathFactory, applyDefaults bool) (interface{}, error)
- func UnmarshalJSON(b []byte, discriminator string, f Factory) (interface{}, error)
- func UnmarshalJSONInto(b []byte, o interface{}, pf PathFactory) (interface{}, error)
- func UnmarshalJSONIntoWithDefaults(b []byte, o interface{}, pf PathFactory, applyDefaults bool) (interface{}, error)
- type Factory
- type OneOfFactory
- type PathFactory
Constants ¶
View Source
const DefaultTagName = "default"
DefaultTagName specifies the struct tag used to identify default value for the field
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode a map into a Decodeable thing given the discriminator and the factory for all possible types and embedded types
func DecodeInto ¶ added in v0.0.10
func DecodeInto(m map[string]interface{}, o interface{}, pf PathFactory) (interface{}, error)
func DecodeIntoWithDefaults ¶ added in v0.1.5
func DecodeIntoWithDefaults(m map[string]interface{}, o interface{}, pf PathFactory, applyDefaults bool) (interface{}, error)
func UnmarshalJSON ¶
UnmarshalJSON byte description of a Decodeable thing
func UnmarshalJSONInto ¶ added in v0.0.10
func UnmarshalJSONInto(b []byte, o interface{}, pf PathFactory) (interface{}, error)
UnmarshalJSON byte into an instance of object
func UnmarshalJSONIntoWithDefaults ¶ added in v0.1.5
func UnmarshalJSONIntoWithDefaults(b []byte, o interface{}, pf PathFactory, applyDefaults bool) (interface{}, error)
UnmarshalJSON byte into an instance of object
Types ¶
type OneOfFactory ¶ added in v0.0.10
Factory makes Decodeable things described by their kind
Click to show internal directories.
Click to hide internal directories.