Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
Marshal is same as yaml.Marshal except it creates a `yaml.Encoder` with indent space 2 for encoding.
func MarshalWithSeparator ¶ added in v1.18.0
MarshalWithSeparator is same as Marshal except for slice or array types where each element is encoded individually and separated by "---".
func UnmarshalStrict ¶
UnmarshalStrict is like Unmarshal except that any fields that are found in the data that do not have corresponding struct members, or mapping keys that are duplicates, will result in an error. This is ensured by setting `KnownFields` true on `yaml.Decoder`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.