Versions in this module Expand all Collapse all v1 v1.13.0 Jan 15, 2024 v1.12.1 Jul 1, 2022 Changes in this version + type Config interface + As func(v interface{}) (err error) + Get func(path string, v interface{}) (has bool, err error) + Node func(path string) (v Config, has bool) + Raw func() []byte + func NewJsonConfig(raw []byte) (v Config, err error) + func NewYamlConfig(raw []byte) (v Config, err error) + type FileStore struct + func (store *FileStore) Read() (root []byte, subs map[string][]byte, err error) + type Raw json.RawMessage + func (r *Raw) UnmarshalJSON(data []byte) error + func (r Raw) As(v interface{}) (err error) + func (r Raw) MarshalJSON() ([]byte, error) + type Retriever struct + func NewRetriever(option RetrieverOption) (retriever *Retriever, err error) + func (retriever *Retriever) Get() (v Config, err error) + type RetrieverOption struct + Active string + Format string + Store Store + type Store interface + Read func() (root []byte, subs map[string][]byte, err error) + func NewFileStore(configPath string, prefix string, splitter byte) Store