README ¶ config go config helper from environment variable Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Variables func FromEnv() func FromEnvWithPrefix(pref string, must ...string) error func Get(name string, def ...string) string func GetDuration(name string, def ...string) time.Duration func GetInt(name string, def ...int) int func NewValues() configVars func Set(name string, value string) Constants ¶ This section is empty. Variables ¶ View Source var ( Values = configVars(map[string]string{}) ) Functions ¶ func FromEnv ¶ func FromEnv() func FromEnvWithPrefix ¶ func FromEnvWithPrefix(pref string, must ...string) error func Get ¶ func Get(name string, def ...string) string func GetDuration ¶ func GetDuration(name string, def ...string) time.Duration func GetInt ¶ func GetInt(name string, def ...int) int func NewValues ¶ func NewValues() configVars func Set ¶ func Set(name string, value string) Types ¶ This section is empty. Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.