Uber Go Style Guide

Tutorial
2026-10-07

Description

The Uber Go Style Guide documents the patterns and conventions used in Go code at Uber. It was originally created by Prashant Varanasi and Simon Newton to bring colleagues up to speed with Go and has been amended over the years based on feedback. The guide is organized into Guidelines, Performance, Style, Patterns and Linting, with concrete rules such as verifying interface compliance, using defer to clean up, handling errors once, avoiding mutable globals and not firing off goroutines without managing their lifetime. Most rules come with paired bad and good code examples. The repository is Apache-2.0 licensed and links to community translations. Handy for teams that want a ready-made baseline for Go code review.

User Reviews

No reviews yet for this resource.