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