package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Sep 14, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Bool calls os.Getenv(key) and parses the value as a bool. The following
values return true: "1", "true", "yes", "y", "on", "ok"
Duration is a shortcut for time.ParseDuration(os.Getenv(key)).
Int is a shortcut for strconv.Atoi(os.Getenv(key)).
String returns os.Getenv(key).
Temp calls os.Setenv(key, fmt.Sprint(val)) and returns a function that
restores the previous value of that environment variable.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.