Documentation ¶
Overview ¶
Package gocmd provides helers for invoking Go tooling.
Index ¶
- Variables
- func Build(dir string) error
- func CurrentMod(dir string) (string, error)
- func EditReplace(dir, mod, modPath string) error
- func ListModName(dir string) (string, error)
- func ModInit(dir, importPath, goVersion string) error
- func ModTidy(dir string) error
- func ModTidyAll(dir string) error
- func Vet(dir string) error
- func WorkUse(dir string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBuildConstraint is returned when the Go command returns this error. ErrBuildConstraint error = errors.New("build constraints exclude all Go files") )
Functions ¶
func CurrentMod ¶
CurrentMod returns the module name of the provided directory.
func EditReplace ¶
EditReplace edits a module dependency with a local reference.
func ListModName ¶
ListModName finds a module's name for a given directory.
func ModTidyAll ¶
ModTidyAll tidies all mod files from the specified root directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.