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 ¶
This section is empty.
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 Reader ¶
type Reader interface { Merge(...*KeyValue) error Value(string) (Value, bool) Source() ([]byte, error) }
Reader is config reader.
Click to show internal directories.
Click to hide internal directories.