+5
Daily
17,771
stars
1,811
forks
222
watchers
181
prs
81
issues
3
releases
README
This repository holds the Uber Go Style Guide, which documents patterns and conventions used in Go code at Uber. Style Guide See Uber Go Style Guide for the style guide. Translations We are aware of the following translations of this guide by the Go community. - 中文翻译 (Chinese): xxjwxc/uber_go_guide_cn - 繁體中文 (Traditional Chinese):ianchen0119/uber_go_guide_tw - 한국어 번역 (Korean): TangoEnSkai/uber-go-style-guide-kr - 日本語訳 (Japanese): knsh14/uber-style-guide-ja - Traducción al Español (Spanish): friendsofgo/uber-go-guide-es - แปลภาษาไทย (Thai): pallat/uber-go-style-guide-th - Tradução em português (Portuguese): lucassscaravelli/uber-go-guide-pt - Tradução em português (Portuguese BR): alcir-junior-caju/uber-go-style-guide-pt-br - Tłumaczenie polskie (Polish): DamianSkrzypczak/uber-go-guide-pl - Русский перевод (Russian): alekarah/uber-go-guide-ru - Français (French): rm3l/uber-go-style-guide-fr - Türkçe (Turkish): ksckaan1/uber-go-style-guide-tr - Український переклад (Ukrainian): vorobeyme/uber-go-style-guide-uk - ترجمه فارسی (Persian): jamalkaksouri/uber-go-guide-ir - Tiếng việt (Vietnamese): nc-minh/uber-go-guide-vi - العربية (Arabic): anqorithm/uber-go-guide-ar - Bahasa Indonesia (Indonesian): stanleydv12/uber-go-guide-id If you have a translation, feel free to submit a PR adding it to the list.
Top issues
#146Uber Go style should clarify ordering for type declarations and methods in files with multiple types8 comments · 2022-03-26#131Proposal: Avoid blocking sends to a channel without timeout8 comments · 2021-07-09#129Proposal: Prefer interfaces to function references7 comments · 2021-07-08#128"Channel size is one or none" forbids common and useful patterns5 comments · 2021-07-06#209Verify Interface Compliance with Generic support3 comments · 2024-02-19#166Proposal: Note that VS Code and GoLand have provided “inlay hints” that can avoid naked parameters3 comments · 2023-02-02#208Translate this Guide to Deutsch2 comments · 2024-02-15#201Add information about github.com/pkg/errors2 comments · 2023-11-18
Discussions
#242Question about releases for the guide0 comments · 2025-12-19#204Handling Decimal value for calculation0 comments · 2023-12-18#189Question: how to use custom logger with the guide 'Exit-Once'1 comments · 2023-07-17#159style.md maintainability: split into multiple files?2 comments · 2022-10-21#139Generics catch-all3 comments · 2021-12-09
Latest release
2023-05-09 2023-05-09 2023-05-09Table tests: Rework existing guidance to be less prescriptive.