The most common tools in Go development are the built-in go command (build, test, modules, vet, fmt), the language server gopls in an editor such as VS Code or GoLand, the Delve debugger, golangci-lint, govulncheck, pprof for profiling, and Docker for packaging. Most of what you need ships with the Go toolchain itself.
This guide groups the tools by purpose and shows the commands you use daily with a current Go release.
The go command covers building, testing, formatting and dependency management.
Go Modules record dependencies in go.mod and checksums in go.sum. Since Go 1.21 the go line is a strict minimum, and a toolchain line lets Go download the required compiler version automatically. Go 1.24 added tool directives in go.mod, so developer tools can be pinned and run with go tool.
gopls is the official language server. It powers completion, go-to-definition, refactoring and diagnostics in any editor that supports the Language Server Protocol.
gopls too.Delve is the standard Go debugger and is used by VS Code and GoLand behind the scenes. It understands goroutines, which gdb handles poorly.
Inside dlv you can set breakpoints with break main.main, continue with continue, list goroutines with goroutines and inspect variables with print. Build with -gcflags="all=-N -l" when debugging optimised binaries.
Go includes testing in the standard library, so many projects use only testing.
| Tool | Purpose |
|---|---|
go test -race | Finds data races while tests run |
go test -bench and -fuzz | Benchmarks and fuzz tests (fuzzing since Go 1.18) |
| testify | Assertions and mocks used by many teams |
| golangci-lint | Runs many linters in one command |
staticcheck | Deep static analysis |
govulncheck | Reports known vulnerabilities your code actually reaches |
A basic table-driven test looks like this:
Run it with go test ./.... Each case appears as a named subtest, so failures are easy to locate.
pprof ships with Go. Import net/http/pprof in a service, or use go test -cpuprofile cpu.out, then view results with go tool pprof. go tool trace shows scheduler and goroutine activity, and benchstat compares benchmark runs statistically.
You can build a lot with the standard library, since Go 1.22 net/http has method and path patterns. Popular third-party choices include:
urfave/cli.database/sql with pgx, sqlc for generated queries, GORM or Ent as ORMs.log/slog (Go 1.21), plus zap or zerolog in older projects.Go builds one static binary, which makes Docker images small. A multi-stage build compiles in a Go image and copies the binary into a minimal base image. GitHub Actions, GitLab CI and similar systems use actions/setup-go or the official image, with the module and build cache to speed up runs. GoReleaser automates cross-platform release builds.
VS Code with the Go extension is free and widely used. GoLand is a paid full IDE with deeper refactoring. Both rely on gopls and Delve.
Not always. The standard net/http package is enough for many APIs. Use chi, Gin or Echo when you want middleware helpers and route groups.
Use Go Modules: go get to add, go mod tidy to clean up and commit go.mod and go.sum.
Go Modules, introduced in Go 1.11 and the default since Go 1.16, replaced both.
Start with the standard toolchain: go build, go test -race, go vet, go fmt and modules. Add gopls in your editor, Delve for debugging, golangci-lint and govulncheck in CI, pprof for performance, and Docker for deployment. Pick frameworks only when the standard library no longer fits.