env

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(c string) string

Expand provides shell expansion similar to ExpandWithMap without the map extension. It is os.Env only.

func ExpandWithMap

func ExpandWithMap(c string, env map[string]string) string

Expand provides OS expansion of defined ENV VARs inside args to commands. The expansion is limited to what is defined on the OS and the variables passed into to the env parameter. To escape a dollar sign, pass in two dollar signs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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