Documentation
¶
Index ¶
- func Bool(key string, fallback bool) bool
- func BoolPrefixed(prefixes []string, key string, fallback bool) bool
- func Duration(key string, fallback time.Duration) time.Duration
- func DurationPrefixed(prefixes []string, key string, fallback time.Duration) time.Duration
- func Int(key string, fallback int) int
- func IntPrefixed(prefixes []string, key string, fallback int) int
- func LoadDotEnv(files ...string) error
- func Prefixed(prefixes []string, key, fallback string) string
- func Slice(key string) []string
- func String(key, fallback string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPrefixed ¶
BoolPrefixed returns the first valid boolean found under the supplied prefixes.
func DurationPrefixed ¶
DurationPrefixed returns the first valid duration under the supplied prefixes.
func IntPrefixed ¶
IntPrefixed returns the first valid integer found under the supplied prefixes.
func LoadDotEnv ¶
LoadDotEnv loads optional dotenv files. Environment variables already set win.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.