Help us shape the future of Go! Take the 2026 Go Developer Survey

binary

package
v1.152.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdResult

type CmdResult struct {
	Stdout string
	Stderr string
}

CmdResult output of a command, including stdout and stderr

func ExecWithContext

func ExecWithContext(ctx context.Context, cmd string, args ...string) (CmdResult, error)

func ExecWithContextAndEnv

func ExecWithContextAndEnv(ctx context.Context, env []string, cmd string, args ...string) (CmdResult, error)

func ExecWithContextInDir

func ExecWithContextInDir(ctx context.Context, dir, cmd string, args, env []string) (CmdResult, error)

Jump to

Keyboard shortcuts

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