Warning
This image is no longer maintained, and the repository is archived.
Published tags stay on ghcr.io/obalunenko/go-tools, but they will not get tool or Go updates.
Pin the tools in your own repository with a tool directive in tools/<name>/go.mod and run them
with go tool; obalunenko/getenv#219 shows how.
This repository, go-tools, includes a compilation of common tools used across various projects by the repository owner.
These accompany a Docker image, which you can swiftly pull using the following command:
docker pull ghcr.io/obalunenko/go-tools:latestThe base image is built on top of the official image golang:1.27.4-alpine3.24 and includes the following tools:
| Tool | Version | Description |
|---|---|---|
| buf | v1.75.0 | The buf CLI is the best tool for working with Protocol Buffers |
| gocov | v1.2.1 | Coverage testing tool for The Go Programming Language |
| gocov-html | v1.4.0 | Make pretty HTML output from gocov, a coverage testing tool for Go |
| goimports | v0.36.0 | Command goimports updates your Go import lines, adding missing ones and removing unreferenced ones |
| golangci-lint | v2.15.0 | Fast linters Runner for Go |
| goose | v3.24.2 | A database migration tool |
| goreleaser | v2.20.2 | Deliver Go binaries as fast and easily as possible |
| gotestsum | v1.13.0 | 'go test' runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results. |
| govulncheck | v1.1.4 | Govulncheck reports known vulnerabilities that affect Go code. |
| gowrap | v1.5.0 | GoWrap is a command line tool for generating decorators for Go interfaces |
| mockgen | v0.6.0 | GoMock is a mocking framework for the Go programming language. |
| pp | v2.5.0 | Panicparse Parses panic stack traces, densifies and deduplicates goroutines with similar stack traces. Helps debugging crashes and deadlocks in heavily parallelized processes. |
| sqlc | v1.31.1 | Generate type-safe code from SQL |
| stringer | v0.36.0 | Stringer is a tool to automate the creation of methods that satisfy the fmt.Stringer interface. |
| svu | v3.4.4 | Semantic Version Util |
| swag | v2.0.0-rc4 | Automatically generate RESTful API documentation with Swagger 2.0 for Go |
| swagger | v0.36.7 | Client/Server from OpenAPI docs generation tool |
| tbls | v1.96.1 | tbls is a CI-Friendly tool to document a database, written in Go. |
The go-tools Docker image is engineered to allow for seamless implementation with your code.
- Pull the image
- Run the image with your code mounted as a volume
- Execute the desired commands.
This container is available at go-tools container on GitHub Packages
Tool modules under tools/ are built in module mode. Use make install-tools to build and install tool binaries, and make list-tool-updates to check whether dependencies have newer versions available.
Use make build-local to build the image for your platform and load it as ghcr.io/obalunenko/go-tools:local. Builds reuse the layer cache that CI publishes from master, so only tools that differ from master are compiled. Each tool has its own stage in the Dockerfile; a new tool needs a stage and a COPY line there.