Library for converting environment variable to certain type
Smooth conversation (with default value if env not exist) string to
- int
- int64
- uint64
- string (with default value)
- float64
Example
ServerPort := environ.StrGetEnv("SERVER_PORT", 80)
Strict conversation (with panic if var not exist) string to
- int
- int64
- uint64
- string
- float64
Example
ServerPort := environ.MustGetString("SERVER_PORT")