Documentation ¶
Index ¶
- func FetchOsEnvArray(key string) []string
- func FetchOsEnvBool(key string, defValue bool) bool
- func FetchOsEnvInt(key string, defValue int) int
- func FetchOsEnvStr(key, defValue string) string
- func SetEnvBool(key string, val bool) error
- func SetEnvInt64(key string, val int64) error
- func SetEnvStr(key string, val string) error
- func SetEnvU64(key string, val uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchOsEnvArray ¶
FetchOsEnvArray
fetch os env split by `,` and trim space return not found will return []string(nil).
func FetchOsEnvBool ¶
FetchOsEnvBool
fetch os env by key. if not found will return defValue. return env not same as true (will be lowercase, so TRUE is same)
func FetchOsEnvInt ¶
FetchOsEnvInt
fetch os env by key. return not found will return devValue. if not parse to int, return defValue
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.