Documentation ¶
Index ¶
- func GetBool(name string) (bool, error)
- func GetBoolp(name *string) (r bool, e error)
- func GetFloat(name string) (r float64, e error)
- func GetFloatp(name *string) (r float64, e error)
- func GetInt(name string) (r int, e error)
- func GetIntp(name *string) (result int, err error)
- func GetString(name string) (r string, e error)
- func GetStringp(name *string) (r string, e error)
- func RequireBool(name string) (bool, error)
- func RequireBoolp(name *string) (r bool, e error)
- func RequireFloat(name string) (float64, error)
- func RequireFloatp(name *string) (r float64, e error)
- func RequireInt(name string) (r int, e error)
- func RequireIntp(name *string) (r int, e error)
- func RequireString(name string) (r string, e error)
- func RequireStringp(name *string) (r string, e error)
- func SanitizeBool(name string) (r bool, e error)
- func SanitizeBoolp(name *string) (r bool, e error)
- func SanitizeFloat(name string, min float64, max float64) (float64, error)
- func SanitizeFloatp(name *string, min float64, max float64) (float64, error)
- func SanitizeInt(name string, min, max int) (int, error)
- func SanitizeIntp(name *string, min, max int) (int, error)
- func SanitizeString(name, pattern string) (string, error)
- func SanitizeStringp(name, pattern *string) (string, error)
- func SetAny(name string, value any) error
- func SetAnyp(name *string, value *any) error
- func SetBool(name string, value bool) error
- func SetBoolp(name *string, value bool) error
- func SetFloat(name string, value float64) error
- func SetFloatp(name *string, value float64) error
- func SetInt(name string, value int) error
- func SetIntp(name *string, value int) error
- func SetString(name string, value string) error
- func SetStringp(name *string, value *string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStringp ¶
GetStringp - Return the int value of a given environment variable
func RequireBool ¶
RequireBool - Return the boolean value of an environment variable (returning error if empty).
func RequireBoolp ¶
RequireBoolp - Return the boolean value of an environment variable (returning error if empty).
func RequireFloat ¶
RequireFloat - Return the Float value of an environment variable (returning error if empty).
func RequireFloatp ¶
RequireFloatp - Return the Float value of an environment variable (returning error if empty).
func RequireInt ¶
RequireInt - Return the int value of a given environment variable (return error if not set)
func RequireIntp ¶
RequireIntp - Return the int value of a given environment variable (return error if not set)
func RequireString ¶
RequireString - Return the string value of a given environment variable (return error if not set)
func RequireStringp ¶
RequireStringp - Return the string value of a given environment variable (return error if not set)
func SanitizeBool ¶
SanitizeBool - Return the sanitized boolean value of a given environment variable name.
func SanitizeBoolp ¶
SanitizeBoolp - Return the sanitized boolean value of a given environment variable name.
func SanitizeFloat ¶
SanitizeFloat - get the float env var and bounds check the value
func SanitizeFloatp ¶
SanitizeFloatp - get the float env var and bounds check the value
func SanitizeInt ¶
SanitizeInt - return sanitized integer env var
func SanitizeIntp ¶
SanitizeIntp - return sanitized environment variable (sanitized)
func SanitizeString ¶
SanitizeString - return the string env var (sanitized by regex pattern)
func SanitizeStringp ¶
SanitizeStringp - return the string env var (sanitized by regex pattern)
func SetStringp ¶
SetStringp - Set Environment variable value (pointer)
Types ¶
This section is empty.
Source Files ¶
- GetBool.go
- GetBoolp.go
- GetFloat.go
- GetFloatp.go
- GetInt.go
- GetIntp.go
- GetString.go
- GetStringp.go
- RequireBool.go
- RequireBoolp.go
- RequireFloat.go
- RequireFloatp.go
- RequireInt.go
- RequireIntp.go
- RequireString.go
- RequireStringp.go
- SanitizeBool.go
- SanitizeBoolp.go
- SanitizeFloat.go
- SanitizeFloatp.go
- SanitizeInt.go
- SanitizeIntp.go
- SanitizeString.go
- SanitizeStringp.go
- SetAny.go
- SetAnyp.go
- SetBool.go
- SetBoolp.go
- SetFloat.go
- SetFloatp.go
- SetInt.go
- SetIntp.go
- SetString.go
- SetStringp.go
- constants.go