This is a creation in Article, where the information may have evolved or changed.
Catalogue [−]
- Accept interfaces, return concrete types
- Code Review Comments
- Effective Go
- Go Patterns
- Go Proverbs
- Go and the Zen of Python
- Go by Example
- Idiomatic Doc comments:document Your function, not Your function Signature
- Idiomatic Go
- Idiomatic Go Readability
- Idiomatic Go Tests
- Idiomatic Go trickshttps://medium.com/@matryer/IDIOMATIC-GO-TRICKS-62ABEA5C50FB
- Itty bitty Go idiom:if without Else
- Things I learned teaching Go
- What is idiomatic Go?
- When in Go, does as Gophers do
- Shades of Go:traps, gotchas, and Common mistakes for New Golang Devs
Original: Idiomatic Go
What kind of code is the most authentic go code? The question is often asked, but it is not a good answer. Part of the reason is that we are still groping, or go is a young language. As languages and communities mature, older drivers will agree on the real go code.
Note that the authentic code is not a restriction on your rules, but a code guide. Working code is more important than authentic code. Because the so-called tunnel, is only a consensus reached, so the "bad" code does not necessarily represent a mistake.
Since there is no definite answer, I have collected relevant references in this article, readers.
Accept interfaces, return concrete types
Craig Brookes 2016-11-02
Explain what is the authentic code and why you should follow it.
Code Review Comments
In code review, a general set of instructions, a short few words about how to write code in a typical way. Go official.
Effective Go
The Go Development Group provides tips for writing clear, authentic go code. This is a must-read reference document for Go programmers, with more than just code guidance, but also the considerations behind the various features of go.
Go Patterns
Tamer Tas
A collection of design patterns and application patterns for the go language.
Go Proverbs
Rob Pike collects simple, poetic, insightful quotations that explain the deep philosophy of the go language in a way that is easier to understand. Truly understanding and applying them will make you a go Daniel.
Go and the Zen of Python
Andrew Gerrand
Compare the Zen meaning of Python and Go.
Go by Example
Using annotated examples to teach go, you will discuss what kind of code is the code of the tunnel.
Idiomatic Doc comments:document Your function, not Your function Signature
Katrina Owen 2015-10-14
The example explains how to write helpful comments for the GO function.
Idiomatic Go
Dmitri Shuralyov
The code Review comments is complemented by compelling justification and references to illustrate the authentic Go Code guidance.
Idiomatic Go Readability
Haya14busa
Practical experience and tips for authentic readability of Go code, including automated and manual methods.
Idiomatic Go Tests
Craig Brookes
The author explains how the authentic go test should be done by example.
Idiomatic Go trickshttps://medium.com/@matryer/IDIOMATIC-GO-TRICKS-62ABEA5C50FB
Mat Ryer Video Slides 2016-08-18
Some tips and tricks for you to talk about go like an old driver.
Itty bitty Go idiom:if without Else
Katrina Owen 2015-10-16
This article explains why you usually see a statement in the go code that if
doesn't have a else
branch.
Things I learned teaching Go
Francesc Campoy Flores 2014-10-10
It's better because it's what's people in the community expect.
Experience through teaching and summarizing.
What is idiomatic Go?
This is a discussion of Reddit, an attack on the non-authentic go code in a code base. Comments show that these authentic code guides Help and hurts the community.
When in Go, does as Gophers do
Fumitoshi Ukai 2014-11-30
Some of the typical ways to write go code are learned by review the submission of the Go Project code. The author, as Go readability approver, review about 200 of CL in a year, summarizing what he has learned in this article.
Once I have found more references, I will update this article, so remember to bookmark this article.
Of course, as a translator, I will also add more resources, if you find some reference in this regard, remember to post it in the comments oh.
Shades of Go:traps, gotchas, and Common mistakes for New Golang Devs
Kyle Quest
Go 50-degree gray: Golang the pitfalls and common mistakes that new developers should pay attention to