gocmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

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

Command creates an exec.Cmd for running a Go command. The first argument is the Go subcommand (e.g., "build", "test"), followed by its arguments.

func List

func List(path string) ([]string, error)

List runs 'go list' on a package path and returns the list of packages. Returns the packages found (one per line from stdout) and any error. If an error occurs, it includes a user-friendly error message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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