Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StrSlice ¶
type StrSlice struct {
// contains filtered or unexported fields
}
StrSlice represents a string or an array of strings. We need to override the json decoder to accept both options.
func (*StrSlice) MarshalJSON ¶
MarshalJSON Marshals (or serializes) the StrSlice into the json format. This method is needed to implement json.Marshaller.
func (*StrSlice) UnmarshalJSON ¶
UnmarshalJSON decodes the byte slice whether it's a string or an array of strings. This method is needed to implement json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.