Documentation ¶
Index ¶
- func Float64Or(envVar string, def float64) float64
- func Int32Or(envVar string, def int32) int32
- func Int64Or(envVar string, def int64) int64
- func RandomBytes(len int) ([]byte, error)
- func RandomString(len int) (string, error)
- func RequireFloat64(envVar string) float64
- func RequireValue(envVar string) string
- func Value(envVar string) string
- func ValueOr(envVar, def string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomBytes ¶
RandomBytes generates a random bytes of len len or error
func RandomString ¶
RandomString generates a random base64 string of length len or err
func RequireFloat64 ¶
RequireFloat64 returns the env variable as int64 or panic
func RequireValue ¶
RequireValue returns the env Value or panic if none exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.