Documentation
¶
Index ¶
- func ApplyTemplate(d *Decoder, input string) (string, error)
- func FuncMap(d *Decoder) template.FuncMap
- type ConfigError
- type Decoder
- type Decoding
- func Bool(target interface{}) Decoding
- func Int(target interface{}) Decoding
- func Keys(lookup map[string]Decoding) Decoding
- func Kinds(lookup map[reflect.Kind]Decoding) Decoding
- func Map(produce Producer, target interface{}) Decoding
- func Singleton(produce Producer, target interface{}) Decoding
- func Slice(produce Producer, target interface{}) Decoding
- func String(target interface{}) Decoding
- type Producer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigError ¶
type ConfigError string
const ( ErrUnexpectedType ConfigError = "unexpected type" ErrUnexpectedKey ConfigError = "unexpected key" )
func (ConfigError) Error ¶
func (e ConfigError) Error() string
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func (*Decoder) DecodeYaml ¶
Click to show internal directories.
Click to hide internal directories.