package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Mar 25, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package xos provides extensions for Go's standard os package.
GetDurationEnv returns the time.Duration value of the environment variable
named by the key.
If the variable is present in the environment the value (which may be empty)
or if the variable is unset, a fallback value is returned.
GetEnv returns the string value of the environment variable named by the key.
If the variable is present in the environment the value (which may be empty)
or if the variable is unset, a fallback value is returned.
GetIntEnv returns the integer value of the environment variable named by the
key.
If the variable is present in the environment the value (which may be empty)
or if the variable is unset, a fallback value is returned.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.