Equivalent in Go for "Code Complete"?

Hello all,

What are the Golang equivalents of “Code Complete” ? That is an old C/C++ book on how to write quality code, but with a catch: it focused on structuring code at a very very low level (when to create a new method, how to structure the code inside of an algorithm, how to name variables that do a certain thing).

Is there any Go equivalent of showing small code examples and then the refactored version, where the code is a bit more efificient and easier to read ?

Take a look at these:
Uber Go Style Guide
golangci-lint

For an example of the “very very low-level” you mentioned, take a look at fieldalignment

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.