styleguide icon indicating copy to clipboard operation
styleguide copied to clipboard

Why no Go code style?

Open xorcare opened this issue 4 years ago • 5 comments

Hello, are you planning to add Golang style guide?

xorcare avatar Sep 08 '20 17:09 xorcare

There's no a whole lot on top of the Go language requirements that can be added. Golang already dictates pretty much everything. go fmt even does the formatting.

IsaacG avatar Sep 08 '20 17:09 IsaacG

maybe we should add a link/sentence for go that just says "use go fmt" ?

vapier avatar Sep 08 '20 17:09 vapier

There's no a whole lot on top of the Go language requirements that can be added. Golang already dictates pretty much everything. go fmt even does the formatting.

Maybe, but why then such things appear? https://github.com/uber-go/guide

Or for example:

https://golang.org/doc/effective_go.html https://github.com/golang/go/wiki/CodeReviewComments

It seems to me that not everything is as simple as it seems ...

xorcare avatar Sep 09 '20 08:09 xorcare

  1. Much of that content isn't style related. A style guide is not the same as a guide on effective coding or common patterns.
  2. The internet is a vast place. The fact that something exists on it somewhere doesn't have much meaning.

IsaacG avatar Sep 09 '20 15:09 IsaacG

https://google.github.io/styleguide/go/index

kscooo avatar Nov 18 '22 05:11 kscooo