osutils

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAndCompareOSEnv

func GetAndCompareOSEnv(key, compareStr string) bool

GetAndCompareOSEnv retrieves the value of the environment variable named by the key and compares it to the value of compareStr. If the environment variable is not present it returns false

func GetOSEnv

func GetOSEnv(key string) string

GetOSEnv retrieves the value of the environment variable named by the key. It returns the value, which will be empty if the variable is not present.

func GetOSEnvOrDefault

func GetOSEnvOrDefault(key, defaultVal string) string

GetOSEnvOrDefault retrieves the value of the environment variable named by the key. If the environment variable is not present the default value will be returned

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL