Look up the exact command to visualize code coverage, run fuzz tests, or detect goroutine leaks in a Go project.
Find the right tool to generate enums, mocks, type-safe database queries, or protobuf bindings in a Go codebase.
Audit all dependency licenses in a Go module or generate a call graph to understand unfamiliar code.
go-recipes is a curated collection of commands, tools, and techniques for Go projects. Rather than being a library you install as a dependency, it is a reference document organized into categories covering the full development workflow. Each entry names a task, shows the tool or command that handles it, and often includes a short example or benchmark result. Testing is covered in depth. Entries show how to measure and visualize code coverage in several formats, how to run fuzz tests, how to detect goroutine memory leaks, and how to produce test reports in JUnit format. Several tools for formatting and summarizing test output are listed alongside options for automatically retrying failed tests or skipping the slowest ones. Dependency management entries cover checking which modules can be upgraded, visualizing the dependency graph as an image, auditing license types across all dependencies, and enforcing architectural layer rules. Code visualization entries include tools for generating call graphs, UML diagrams, and interactive 3D representations of a codebase. Code generation is a recurring theme. The entries show how to produce enum methods, constructors, type-safe database query code, mock implementations for testing, and protobuf bindings. Other sections address profiling, benchmarking, linting, formatting, security scanning, SQL tooling, WebAssembly builds, and publishing modules. The repository also covers cross-compilation, working with generics, integrating AI coding assistants, and less commonly documented Go features. Each recipe links to the relevant upstream tool or documentation. This is a community-maintained reference rather than a finished product. The full README is longer than what was shown.
← nikolaydubina on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.