Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is key not found. ErrNotFound = errors.New("key not found") // ErrTypeAssert is type assert error. ErrTypeAssert = errors.New("type assert error") )
Functions ¶
func DefaultDecoder ¶
func DefaultResolver ¶
Types ¶
type Config ¶
type Config interface { Load() error Scan(v interface{}) error Value(key string) Value Watch(key string, o Observer) error Close() error }
Config is a config interface.
type KeyValue ¶
KeyValue is config key value. if source is a file, key is file name, value is the file content, format is file format suffix.
type Reader ¶
Click to show internal directories.
Click to hide internal directories.