Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringKeyMap ¶
type StringKeyMap map[string]interface{}
StringKeyMap is a map type that can be marshaled and unmarshalled from both yaml and json. It expects that map keys will always be a string type. json.Marshal cannot normally marshal map[interface{}]interface{} types, so this type allows interoperability between yaml and json
func (StringKeyMap) MarshalJSON ¶
func (m StringKeyMap) MarshalJSON() ([]byte, error)
func (*StringKeyMap) UnmarshalYAML ¶
func (m *StringKeyMap) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.