Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringOrInteger ¶
type StringOrInteger string
StringOrInteger is scalar value that might be a string or an integer.
func (*StringOrInteger) UnmarshalJSON ¶
func (sos *StringOrInteger) UnmarshalJSON(b []byte) error
UnmarshalJSON handles the decision of this being a string or integer and unmarshaling accordingly.
type StringOrSlice ¶
type StringOrSlice []string
StringOrSlice is a slice of strings that might be just a single string in JSON. e.g. if the value is "foo" we want to make it ["foo"]
func (*StringOrSlice) UnmarshalJSON ¶
func (sos *StringOrSlice) UnmarshalJSON(b []byte) error
UnmarshalJSON handles the decision of this being a string or slice and unmarshaling accordingly.
Click to show internal directories.
Click to hide internal directories.