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