Reference: Authentic Go Code

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Catalogue [−]

  1. Accept interfaces, return concrete types
  2. Code Review Comments
  3. Effective Go
  4. Go Patterns
  5. Go Proverbs
  6. Go and the Zen of Python
  7. Go by Example
  8. Idiomatic Doc comments:document Your function, not Your function Signature
  9. Idiomatic Go
  10. Idiomatic Go Readability
  11. Idiomatic Go Tests
  12. Idiomatic Go trickshttps://medium.com/@matryer/IDIOMATIC-GO-TRICKS-62ABEA5C50FB
  13. Itty bitty Go idiom:if without Else
  14. Things I learned teaching Go
  15. What is idiomatic Go?
  16. When in Go, does as Gophers do
  17. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.