Versions in this module Expand all Collapse all v0 v0.0.11 Apr 30, 2020 Changes in this version + type DefaultSetting struct + Env map[string]string + Value *Value + var Default *DefaultSetting = NewSetting() + func NewSetting(opts ...Opt) *DefaultSetting + func (ctx *DefaultSetting) ExecTemplate(r io.Reader) (io.Reader, error) + func (ctx *DefaultSetting) Get(key string) (string, bool) + func (ctx *DefaultSetting) GetValue(key string, result interface{}) error + func (ctx *DefaultSetting) LoadValue(r io.Reader) error + func (ctx *DefaultSetting) RefreshEnv() + func (ctx *DefaultSetting) SetValueReader(r ValueReader) + type JsonValue struct + func (v *JsonValue) Deserialize(value string, result interface{}) error + func (v *JsonValue) Read(r io.Reader) (*Value, error) + func (v *JsonValue) Serialize(o interface{}) (string, error) + type Opt func(ctx *DefaultSetting) error + func SetValue(r io.Reader) Opt + func SetValueReader(r ValueReader) Opt + type Setting interface + Get func(key string) (string, bool) + GetValue func(key string, result interface{}) error + LoadValue func(r io.Reader) error + RefreshEnv func() + SetValueReader func(r ValueReader) + type Value = map[string]interface + type ValueReader interface + Deserialize func(v string, result interface{}) error + Read func(r io.Reader) (*Value, error) + Serialize func(o interface{}) (string, error)