gocmd

package
v0.0.4-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: EUPL-1.2 Imports: 14 Imported by: 0

Documentation

Overview

Package gocmd provides Go development commands with enhanced output.

Note: Package named gocmd because 'go' is a reserved keyword.

Commands:

  • test: Run tests with colour-coded coverage summary
  • cov: Run tests with detailed coverage reports (HTML, thresholds)
  • fmt: Format code using goimports or gofmt
  • lint: Run golangci-lint
  • install: Install binary to $GOPATH/bin
  • mod: Module management (tidy, download, verify, graph)
  • work: Workspace management (sync, init, use)

Sets MACOSX_DEPLOYMENT_TARGET to suppress linker warnings on macOS.

Package gocmd provides Go development commands.

Note: Package named gocmd because 'go' is a reserved keyword.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGoCommands

func AddGoCommands(root *cli.Command)

AddGoCommands adds Go development commands.

Types

type CheckResult

type CheckResult struct {
	Name     string `json:"name"`
	Passed   bool   `json:"passed"`
	Duration string `json:"duration"`
	Error    string `json:"error,omitempty"`
	Output   string `json:"output,omitempty"`
	FixHint  string `json:"fix_hint,omitempty"`
}

CheckResult holds the result of a single check

type QACheck

type QACheck struct {
	Name    string
	Command string
	Args    []string
}

QACheck represents a single QA check.

type QAResult

type QAResult struct {
	Success   bool          `json:"success"`
	Duration  string        `json:"duration"`
	Checks    []CheckResult `json:"checks"`
	Coverage  *float64      `json:"coverage,omitempty"`
	Threshold *float64      `json:"threshold,omitempty"`
}

QAResult holds the result of a QA run for JSON output

Jump to

Keyboard shortcuts

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