Practical Go — screenshot of dave.cheney.net

Practical Go

This is a solid collection of real-world advice for writing maintainable Go programs. It thoroughly covers fundamentals, package/project design, API best practices, error handling, concurrency, and testing.

Visit dave.cheney.net →

Questions & Answers

What is Practical Go by Dave Cheney?
Practical Go is a comprehensive collection of real-world advice and best practices for writing maintainable and idiomatic Go programs. It compiles insights from various presentations and articles by Dave Cheney, a prominent Go contributor.
Who can benefit from the Practical Go resource?
This resource is primarily for Go developers, from intermediate to experienced, who want to deepen their understanding of Go's design principles and improve the maintainability and quality of their codebase. It's particularly useful for those building professional applications.
When should I consult the Practical Go guide?
You should consult the Practical Go guide when designing new Go projects, refactoring existing code, or seeking clarity on common Go patterns like error handling, concurrency, or package structure. It serves as a valuable reference for robust Go development.
How does Practical Go stand out from other Go programming guides?
Practical Go distinguishes itself by focusing on "real-world advice" rather than just syntax, providing practical insights into maintainable Go programs through specific examples and opinionated best practices directly from an experienced Go contributor, Dave Cheney. It emphasizes actionable guidance across various development stages.
What advice does Practical Go offer regarding error handling?
Practical Go advises not just checking errors, but handling them gracefully. It suggests approaches for inspecting errors, understanding constant errors, and even eliminating error handling by redesigning functions to prevent errors where possible, covering different perspectives on error management.