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

run

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package run executes subprocesses; tests substitute a fake Func.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(ctx context.Context, dir, stdin, name string, args ...string) ([]byte, []byte, error)

Exec is the real Func.

Types

type Func

type Func func(ctx context.Context, dir, stdin, name string, args ...string) (stdout, stderr []byte, err error)

Func runs name with args in dir (empty = current), feeding stdin.

Jump to

Keyboard shortcuts

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