コード例 #1
0
ファイル: config_test.go プロジェクト: keep94/scotty
func (m *mixedType) UnmarshalYAML(unmarshal func(interface{}) error) error {
	type mixedFieldsType mixedType
	return yamlutil.StrictUnmarshalYAML(unmarshal, (*mixedFieldsType)(m))
}
コード例 #2
0
ファイル: api.go プロジェクト: keep94/scotty
func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
	type configFields Config
	return yamlutil.StrictUnmarshalYAML(unmarshal, (*configFields)(c))
}
コード例 #3
0
ファイル: datastructs.go プロジェクト: keep94/scotty
func (c *configLineType) UnmarshalYAML(
	unmarshal func(interface{}) error) error {
	type configLineFieldsType configLineType
	return yamlutil.StrictUnmarshalYAML(
		unmarshal, (*configLineFieldsType)(c))
}