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

process

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Output

func Output(result Result) string

Types

type Command

type Command struct {
	Name string
	Args []string
	Dir  string
	Env  []string
}

type OSRunner

type OSRunner struct{}

OSRunner runs commands via os/exec.

func (OSRunner) Run

func (OSRunner) Run(ctx context.Context, cmd Command) (Result, error)

type Result

type Result struct {
	ExitCode int
	Stdout   string
	Stderr   string
}

type Runner

type Runner interface {
	Run(ctx context.Context, cmd Command) (Result, error)
}

Runner executes external commands. Production code uses OSRunner.

Jump to

Keyboard shortcuts

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