Versions in this module Expand all Collapse all v1 v1.2.3 Jan 28, 2021 Changes in this version + var DefaultConfig = NewConfig() + func Bytes() []byte + func Get(path ...string) reader.Value + func Load(source ...source.Source) error + func LoadFile(path string) error + func Map() map[string]interface + func Scan(v interface{}) error + func Sync() error + type Config interface + Close func() error + Init func(opts ...Option) error + Load func(source ...source.Source) error + Options func() Options + Sync func() error + Watch func(path ...string) (Watcher, error) + func NewConfig(opts ...Option) (Config, error) + type Option func(o *Options) + func WithLoader(l loader.Loader) Option + func WithReader(r reader.Reader) Option + func WithSource(s source.Source) Option + type Options struct + Context context.Context + Loader loader.Loader + Reader reader.Reader + Source []source.Source + type Watcher interface + Next func() (reader.Value, error) + Stop func() error + func Watch(path ...string) (Watcher, error)