Skip to content
Jiří Fatka edited this page Dec 16, 2025 · 2 revisions

Workflow

Default workflow for Go projects.

Tool Default toolset
Configurator -
Builder Go
Runner Go
Tester Go
CoverageCollector -
Formatter fallback Golangci-lint, Go
Linter list: Go, Golangci-lint
DependencyManager Go

Tools

Go

Build

Command Mapping
cdt build go run
cdt build -o <dir> go run -o <dir>
cdt build <arg1> <arg2> go run <arg1> <arg2>
cdt build -o <dir> <arg1> <arg2> go run -o <dir> <arg1> <arg2>

Test

Command Mapping
cdt test go test ./...
cdt test <arg1> <arg2> go test <arg1> <arg2>

Format

Command Mapping
cdt format go fmt
cdt format <arg1> <arg2> go fmt <arg1> <arg2>
cdt format --check -
cdt format --check <arg1> <arg2> -

Lint

Command Mapping
cdt lint go vet
cdt lint <arg1> <arg2> go vet <arg1> <arg2>

Run

Command Mapping
cdt run <arg1> go run <arg1>

Dependency

Command Mapping
cdt dependency add <arg1> <arg2> go get <arg1> <arg2>
cdt dependency add --dev <arg1> <arg2> -
cdt dependency remove <arg1> <arg2> go get <arg1>@none <arg2>@none
cdt dependency remove --dev <arg1> <arg2> -
cdt dependency fetch go mod tidy
cdt dependency fetch --no-dev -
cdt dependency update go get
cdt dependency update <arg1> <arg2> go get <arg1> <arg2>
cdt dependency list go list -m all
cdt dependency audit -

Golangci-lint

Command Mapping
cdt format golangci-lint fmt
cdt format <arg1> <arg2> golangci-lint fmt <arg1> <arg2>
cdt format --check golangci-lint fmt --diff
cdt format --check <arg1> <arg2> golangci-lint fmt --diff <arg1> <arg2>

Lint

Command Mapping
cdt lint golangci-lint run
cdt lint <arg1> <arg2> golangci-lint run <arg1> <arg2>

Clone this wiki locally