This document contains my personal list of idioms, patterns, and best practices for Go. Some of these are my own, many are not, but this is an inherently subjective list.
Error wrapping
...
Prefer %q over %s
If you're interpolating text that my include whitespace, prefer %q over %s because it removes ambiguity for the reader.
Bad: