styleguide | Style guides for Google-originated open-source projects
Note: This is part of a series of documents that outline Go Style at Google. This document is normative and canonical. See the overview for more information. There are a few overarching principles that summarize how to think about writing readable Go code. The following are attributes of readable code, in order of importance: The core goal of readability is to produce code that is clear to the reader. Clarity is primarily achieved with effective naming, helpful commentary, and efficient code organization. Clarity is to be viewed through the lens of the reader, not the author of the code. It is more important that code be easy to read than easy to write. Clarity in code has two distinct facets: Go is designed such that it should be relatively straightforward to see what the code is doing. In cases of uncertainty or where a reader may require prior knowledge in order to understand the code, it is worth investing time in order to make the code’s purpose clearer for future readers. For exa
styleguide | Style guides for Google-originated open-source projects styleguide Go Style Guide https://google.github.io/styleguide/go/guide Overview | Guide | Decisions | Best practices Note: This is part of a series of documents that outline Go Style at Google. This document is normative and canonical . See the overview for more information. Style principles There are a few overarching principles that summarize how to think about writing readable Go code. The following are attributes of readable code, in order of importance: Clarity : The code’s purpose and rationale is clear to the reader. S
Explore this link on the map →related reading
- Writing Better Go: Lessons from 10 Code Reviews - Speaker Deckspeakerdeck.com
- Writing Better Go: Lessons from 10 Code Reviews - Speaker Deckspeakerdeck.com
- Frequently Asked Questions (FAQ) - The Go Programming Languagego.dev
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- Go at Google: Language Design in the Service of Software Engineering - The Go Programming Languagego.dev
- Package names - The Go Programming Languagego.dev
- Peter Bourgon · Go for Industrial Programmingpeter.bourgon.org
- Four Days of Go – Evan Millerevanmiller.org
- Effective Go - The Go Programming Languagego.dev
- Google Testing Blog: Less Is More: Principles for Simple Commentstesting.googleblog.com
- Google Testing Blog: Code Healthtesting.googleblog.com
- Clean up your code: How to create your own C# code styleblog.unity.com