Documentation ¶
Overview ¶
Package gocmd provides helers for invoking Go tooling.
Index ¶
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 ListModDirName ¶
ListModDirName finds the directory in which the module resides. Returns ErrBuildConstraint if all files in a module are constrained.
func ListModName ¶
ListModName finds a modules 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.