go commands
10 commands, each with a one-line explanation. Click a command to copy it, or its title for details.
Commands 10 shown
-
GOOS=linux GOARCH=amd64 go build -o bin/app ./cmd/appCross-compile a Go binary for Linux/amd64
-
go test -race -count=1 ./...Run all tests with race condition detection enabled
-
go test -coverprofile=cov.out ./... && go tool cover -html=cov.outGenerate HTML coverage report and open in browser
-
go get github.com/some/pkg@v1.2.3Download a specific module version and update go.mod
-
go mod tidyAdd missing and remove unused module dependencies
-
go mod vendorCopy all module dependencies into the vendor/ directory
-
go test -cpuprofile=cpu.prof -bench=. ./... && go tool pprof cpu.profRun benchmarks, collect CPU profile, open pprof interactive UI
-
go list ./...Print import paths of all packages in the module
-
gofmt -w .Reformat all .go files in the current tree
-
go vet ./...Report likely mistakes in Go source code
no commands match — try a different search