Example #1
0
func (m *mixedType) UnmarshalYAML(unmarshal func(interface{}) error) error {
	type mixedFieldsType mixedType
	return yamlutil.StrictUnmarshalYAML(unmarshal, (*mixedFieldsType)(m))
}
Example #2
0
File: api.go Project: keep94/scotty
func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
	type configFields Config
	return yamlutil.StrictUnmarshalYAML(unmarshal, (*configFields)(c))
}
Example #3
0
func (c *configLineType) UnmarshalYAML(
	unmarshal func(interface{}) error) error {
	type configLineFieldsType configLineType
	return yamlutil.StrictUnmarshalYAML(
		unmarshal, (*configLineFieldsType)(c))
}