envvars

package
v0.0.0-...-24ca9bf Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HOME   string = Getenv("$HOME")
	PWD    string = Getenv("$PWD")
	SHELL  string = Getenv("$SHELL")
	GOPATH string = Getenv("$GOPATH")
)

common shell environment variables

Functions

func EnvSet

func EnvSet(key, value string) error

func Getenv

func Getenv(v string) string

Getenv returns the value of the string while it replaces ${var} or $var in the string according to the values of the current environment variables. References to undefined variables are replaced by a the empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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