Skip to content

Instantly share code, notes, and snippets.

@Emmanuerl
Last active July 24, 2024 08:02
Show Gist options
  • Save Emmanuerl/2a6cdd901c96dbb999ffaf5ec4e2b759 to your computer and use it in GitHub Desktop.
Save Emmanuerl/2a6cdd901c96dbb999ffaf5ec4e2b759 to your computer and use it in GitHub Desktop.
Golang Styleguide

So i've been asking the question: "how exactly should i write Golang in a very futuristic way?" futuristic meaning maintainable, flexible and of course, testable. I came across Mat Ryer's way which made a lot of sense, however, Russ Cox begs to differ, and of Russ Cox is whoever he thinks is within Golang's compound. So I dug further and found more resources, I'll try to update this gist as i continue this journey

Project Structure

TLDR; they all say the same thing: organise by function and not by type

Styleguide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment