Documentation
¶
Index ¶
- Variables
- func AddPathEnv(env map[string]string, binDir string, isolatePath bool)
- func FilterLongEnv(env map[string]string, args []string) error
- func LookPath(file, path string) (string, error)
- func Make(ctx context.Context, cfg MakeConfig) error
- func MakeBin(cfg MakeBinConfig) error
- type Cmd
- type ExecConfig
- type File
- type IOConfig
- type MakeBinConfig
- type MakeConfig
- type TarFile
Constants ¶
This section is empty.
Variables ¶
View Source
var MAX_ARG_STRLEN = 131072
Functions ¶
func LookPath ¶
LookPath searches for an executable named file in the directories named by the PATH environment variable. If file contains a slash, it is tried directly and the PATH is not consulted. Otherwise, on success, the result is an absolute path.
In older versions of Go, LookPath could return a path relative to the current directory. As of Go 1.19, LookPath will instead return that path along with an error satisfying errors.Is(err, ErrDot). See the package documentation for more details.
func MakeBin ¶
func MakeBin(cfg MakeBinConfig) error
Types ¶
type ExecConfig ¶
type MakeBinConfig ¶
type MakeConfig ¶
Click to show internal directories.
Click to hide internal directories.