Documentation ¶
Overview ¶
Package env is used to parse environment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns a value for a given key. If the key does not exist, the default value will be returned.
func GetGOBIN ¶
func GetGOBIN() string
GetGOBIN returns GOBIN environment variable as a string. It will NOT be an empty string.
func GetGOPATH ¶
func GetGOPATH() string
GetGOPATH returns GOPATH environment variable as a string. It will NOT be an empty string.
func GetRuntimeEnv ¶
GetRuntimeEnv returns the value of runtime environment variable, that is set by running following command: `go env -w key=value`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.