Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReversePaths ¶
ReversePaths reverses a list of paths and returns a new slice.
Types ¶
type ChangeList ¶
type ChangeList []Change
ChangeList is a slice of changes, with added sort interface. The sort.Interface lists restored changes first and sorts by Key.
func (ChangeList) Len ¶
func (cl ChangeList) Len() int
func (ChangeList) Less ¶
func (cl ChangeList) Less(i, j int) bool
func (ChangeList) Swap ¶
func (cl ChangeList) Swap(i, j int)
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
Env keeps track of changes to environment variables
func (*Env) Changes ¶
func (e *Env) Changes() (changes ChangeList)
Changes returns all changes to environment variables
type Path ¶
type Path struct { Changed bool Added map[string]bool Removed map[string]bool // contains filtered or unexported fields }
Path contains operations for paths in a PATH env var.
func (*Path) GetReversed ¶
GetReversed returns the list of paths reversed.
Click to show internal directories.
Click to hide internal directories.