env

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandEnv

func ExpandEnv(s string) string

func ExpandEnvToArgs

func ExpandEnvToArgs(s string) []string

func ExpandEnvToArgsWith

func ExpandEnvToArgsWith(s, dir string, environ []string) []string

ExpandEnvToArgsWith expands variables and supported helper commands using the supplied request directory and environment. A non-nil environ prevents subprocesses and variable expansion from consulting process-global state.

func PkgConfigCommand added in v1.0.1

func PkgConfigCommand(dir string, environ []string) string

PkgConfigCommand returns the pkg-config executable selected by PKG_CONFIG. Like the Go command, it parses the setting with cmd/internal/quoted rules and uses its first field as the executable name.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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