Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StrSlice ¶
type StrSlice []string
StrSlice represents a string or an array of strings. We need to override the json decoder to accept both options.
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.