env

package
v0.8.5-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendPath

func AppendPath(env []string, binPath string) []string

func Lookup

func Lookup(env []string, bin string) string

Lookup will try to find bin in the PATH in env. It will refer to PATHEXT for Windows support. If bin can not be resolved to anything the original bin string is returned.

func Matches

func Matches(cmd []string, bin string) bool

func ToEnvLike added in v0.3.0

func ToEnvLike(v string) string

func VarOrDefault added in v0.8.0

func VarOrDefault(key, defaultValue string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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