Documentation ¶
Index ¶
- Variables
- func Archive(portBasename string, artifactsPath string) error
- func CollectGoFiles() error
- func Compile(args ...string) error
- func CoverageHTML(htmlFilename string, profileFilename string) error
- func CoverageProfile(profileFilename string) error
- func DockerScout(args ...string) error
- func Errcheck(args ...string) error
- func Factorio(banner string, args ...string) error
- func GoFmt(args ...string) error
- func GoImports(args ...string) error
- func GoVet(args ...string) error
- func GoVetShadow(args ...string) error
- func Install(args ...string) error
- func LoadGoBinariesPath() error
- func Nakedret(args ...string) error
- func SnykTest(args ...string) error
- func Staticcheck(args ...string) error
- func Uninstall(applications ...string) error
- func UnitTest(args ...string) error
- func Unmake(args ...string) error
- func Xgo(outputPath string, args ...string) error
- func Yamllint(args ...string) error
Constants ¶
This section is empty.
Variables ¶
var AllCommandsPath = strings.Join([]string{".", "cmd", "..."}, PathSeparatorString)
AllCommandsPath denotes all Go application packages in this project.
var AllPackagesPath = strings.Join([]string{".", "..."}, PathSeparatorString)
AllPackagesPath denotes all Go packages in a project.
var CollectedGoFiles = make(map[string]bool)
CollectedGoFiles represents source and test Go files in a project. Populdated with CollectGoFiles().
var CollectedGoSourceFiles = make(map[string]bool)
CollectedGoSourceFiles represents the set of Go source files in a project. Populated with CollectGoFiles().
var CollectedGoTestFiles = make(map[string]bool)
CollectedGoTestFiles represents the set of Go test files in a project. Populdated with CollectGoFiles().
var GoListSourceFilesTemplate = "{{$p := .}}{{range $f := .GoFiles}}{{$p.Dir}}/{{$f}}\n{{end}}"
GoListSourceFilesTemplate provides a standard Go template for querying a project's Go source file paths.
var GoListTestFilesTemplate = "{{$p := .}}{{range $f := .XTestGoFiles}}{{$p.Dir}}/{{$f}}\n{{end}}"
GoListTestFilesTemplate provides a standard Go template for querying a project's Go test file paths.
var LoadedGoBinariesPath = ""
LoadedGoBinariesPath denotes the path to the Go binaries directory. Populated with LoadGoBinariesPath().
var PathSeparatorString = string(os.PathSeparator)
PathSeparatorString models the os.PathSeparator as a string.
var Version = "0.0.16"
Version is semver.
Functions ¶
func CollectGoFiles ¶
func CollectGoFiles() error
CollectGoFiles populates CollectedGoFiles, CollectedGoSourceFiles, and CollectedGoTestFiles.
Vendored files are ignored.
func CoverageHTML ¶
CoverageHTML generates HTML formatted coverage data.
func CoverageProfile ¶
CoverageProfile generates raw coverage data.
func DockerScout ¶ added in v0.0.14
DockerScout executes a docker security audit.
func GoVetShadow ¶
GoVetShadow runs go vet against all Go packages in a project, with variable shadow checking enabled.
Depends on golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
func LoadGoBinariesPath ¶
func LoadGoBinariesPath() error
LoadGoBinariesPath populates LoadedGoBinariesPath.
Types ¶
This section is empty.