How to Structure a Golang Project

Photo by Ricardo Gomez Angel on Unsplash

A while back (2020), I published an article on How to Structure a Go Command-Line Project. Within that article, I stated that while there are many recommendations on structuring Go Projects, there is no set standard.

The lack of a standard causes many new Gophers to question the best way to structure a project, A question I still see to this today.

--

--

--

Distinguished Engineer @AmericanExpress building payments systems. Author: https://amzn.to/3kuCFpz, Thoughts, & Opinions are my own.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Evaluate Graphs like a pro

BitPost : Methods vs Functions in Python.

3/1/21–3/7/21

6 Benefits Of Switching To Hybrid IT Management

Using .env and .gitignore to not keep tracking sensitive variables

Using 3rd party frameworks in Xcode 10 Playgrounds

Trailhead Community Content

Positioning with CSS Grid

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Benjamin Cane

Benjamin Cane

Distinguished Engineer @AmericanExpress building payments systems. Author: https://amzn.to/3kuCFpz, Thoughts, & Opinions are my own.

More from Medium

Circuit Breaker Example in Golang

Go faster with Golang and LocalStack

Dependency Injection in Golang

Lovely gopher

An optional Type in Go — an experiment