Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
A Field contains metadata about a JSON field that was unmarshalled from a response.
To check if the field was unmarshalled successfully, use the Field.IsPresent method.
Use the Field.IsExplicitNull method to check if the JSON value is "null".
If the Field.Raw is the empty string, then the field was omitted.
Otherwise, if the field was invalid and couldn't be marshalled successfully, Field.IsPresent will be false, and Field.Raw will not be empty.
func NewInvalidField ¶
func NewNullField ¶
func NewNullField() Field
func NewValidField ¶
func (Field) IsExplicitNull ¶
Returns true if the field is the JSON value "null".
Click to show internal directories.
Click to hide internal directories.