environment

package
v5.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeEnvironments

func MergeEnvironments(ea []string, es ...[]string) []string

MergeEnvironments merges one or more sets of environment variables, overwriting any existing variable in the preceding set, except for the "special" variables PATH, CPATH and LD_LIBRARY_PATH.

The "special" variables PATH, CPATH and LD_LIBRARY_PATH are merged by prepending the values from right to those in left, effectively giving priority to the values from right.

The expected format for an environment variable definition is VAR=VALUE. Any malformed environment variable definition will be discarded by the merge.

Types

This section is empty.

Jump to

Keyboard shortcuts

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