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

exec

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecGoCompiler

func ExecGoCompiler(args ...string) *exec.Cmd

ExecGoCompiler runs the Go compiler with a given command.

func ExecGoTidyModules

func ExecGoTidyModules(extraArgs ...string) *exec.Cmd

ExecGoTidyModules runs the Go compiler to tidy go.mod and go.sum

func NewCmd

func NewCmd(proc string, args ...string) *exec.Cmd

NewCmd builds a new exec cmd with defaults.

func StartAndWait

func StartAndWait(ctx context.Context, le *logrus.Entry, ecmd *exec.Cmd) error

StartAndWait runs the given process and waits for ctx or process to complete.

Types

This section is empty.

Jump to

Keyboard shortcuts

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