3 // Fetcher provides an interface to get typed information out of a configuration
4 // "source". These sources could be the OS enviornment, a .gitconfig, or even
6 type Fetcher interface {
7 // Get returns the string value associated with a given key and a bool
8 // determining if the key exists.
10 // If multiple entries match the given key, the first one will be
12 Get(key string) (val string, ok bool)
14 // GetAll returns the a set of string values associated with a given
15 // key. If no entries matched the given key, an empty slice will be
17 GetAll(key string) (vals []string)
19 // All returns a copy of all the key/value pairs for the current
21 All() map[string][]string