Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolTrue ¶
type BoolTrue struct {
// contains filtered or unexported fields
}
BoolTrue is a custom Yaml boolean type that defaults to true.
func (*BoolTrue) UnmarshalYAML ¶
UnmarshalYAML implements custom Yaml unmarshaling.
type MapEqualSlice ¶
type MapEqualSlice struct {
// contains filtered or unexported fields
}
MapEqualSlice is a custom Yaml type that can hold a map or slice of strings in key=value format.
func NewMapEqualSlice ¶
func NewMapEqualSlice(from map[string]string) *MapEqualSlice
NewMapEqualSlice returns a new MapEqualSlice.
func (*MapEqualSlice) Map ¶
func (s *MapEqualSlice) Map() map[string]string
Map returns the Yaml information as a map.
func (*MapEqualSlice) UnmarshalYAML ¶
func (s *MapEqualSlice) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements custom Yaml unmarshaling.
type StringOrSlice ¶
type StringOrSlice struct {
// contains filtered or unexported fields
}
StringOrSlice is a custom Yaml type that can hold a string or slice of strings.
func NewStringOrSlice ¶
func NewStringOrSlice(from []string) *StringOrSlice
NewStringOrSlice returns a new StringOrSlice.
func (StringOrSlice) Slice ¶
func (s StringOrSlice) Slice() []string
Slice returns the slice of strings.
func (*StringOrSlice) UnmarshalYAML ¶
func (s *StringOrSlice) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements custom Yaml unmarshaling.
Click to show internal directories.
Click to hide internal directories.