Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OmitEmpty ¶
type OmitEmpty struct {
// MyArray corresponds to the JSON schema field "myArray".
MyArray []interface{} `json:"myArray,omitempty"`
// MyBoolean corresponds to the JSON schema field "myBoolean".
MyBoolean *bool `json:"myBoolean,omitempty"`
// MyInteger corresponds to the JSON schema field "myInteger".
MyInteger *int `json:"myInteger,omitempty"`
// MyMap corresponds to the JSON schema field "myMap".
MyMap OmitEmptyMyMap `json:"myMap,omitempty"`
// MyNull corresponds to the JSON schema field "myNull".
MyNull interface{} `json:"myNull,omitempty"`
// MyNullArray corresponds to the JSON schema field "myNullArray".
MyNullArray []interface{} `json:"myNullArray,omitempty"`
// MyNumber corresponds to the JSON schema field "myNumber".
MyNumber *float64 `json:"myNumber,omitempty"`
// MyObjectArray corresponds to the JSON schema field "myObjectArray".
MyObjectArray []OmitEmptyMyObjectArrayElem `json:"myObjectArray,omitempty"`
// MyString corresponds to the JSON schema field "myString".
MyString *string `json:"myString,omitempty"`
// MyStringArray corresponds to the JSON schema field "myStringArray".
MyStringArray []string `json:"myStringArray,omitempty"`
}
func (*OmitEmpty) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type OmitEmptyMyMap ¶
type OmitEmptyMyObjectArrayElem ¶
type OmitEmptyMyObjectArrayElem map[string]interface{}
Click to show internal directories.
Click to hide internal directories.