Documentation ¶
Overview ¶
Package genv provides operations for environment variables of system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All() []string
All returns a copy of strings representing the environment, in the form "key=value".
func Get ¶
Get returns the value of the environment variable named by the <key>. It returns given <def> if the variable does not exist in the environment.
func GetVar ¶
GetVar creates and returns a Var with the value of the environment variable named by the <key>. It uses the given <def> if the variable does not exist in the environment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.