Documentation
¶
Index ¶
- func ContainsGoSourceCode(p string, d fs.DirEntry) (bool, error)
- func DevtoolGo(env map[string]string, cmd string, args ...string) error
- func DevtoolGolangCILint(env map[string]string, cmd string, args ...string) error
- func DownloadModules(directory string) error
- func FindGoModules(base string) ([]string, error)
- func FindGoSourceCodeFolders(base string) ([]string, error)
- func Generate(directory string) error
- func HasChanges(goSourceCodeFolders []string) (bool, error)
- func IsGoModule(p string, d fs.DirEntry) bool
- func Lint(directory, golangCILintCfg string) error
- func LintFix(directory, golangCILintCfg string) error
- func Test(directory string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsGoSourceCode ¶ added in v0.8.0
ContainsGoSourceCode returns true if a directory contains a .go file.
func DevtoolGolangCILint ¶ added in v0.4.4
DevtoolGolangCILint runs the devtool for Golangci-lint
func DownloadModules ¶ added in v0.4.0
DownloadModules downloads Go modules locally
func FindGoModules ¶
FindGoModules will search through the base directory to find the all the Go modules.
func FindGoSourceCodeFolders ¶ added in v0.8.0
FindGoSourceCodeFolders will return a list of directories that contains golang source code
func Generate ¶
Generate runs commands described by directives within existing files with the intent to generate Go code. Those commands can run any process but the intent is to create or update Go source files
func HasChanges ¶ added in v0.8.0
HasChanges checks if the current branch has any Go changes compared to the main branch
func IsGoModule ¶
IsGoModule returns true if a directory contains a go module.
Types ¶
This section is empty.