Skip to content
Basic monolith folder structure for go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
cmd
docs
pkg
scripts
Makefile
README.md

README.md

golangmonorepo

When first working with Golang one of the difficulties I ran into was not knowing how to structure my project... The purpose of this repo is to provide an example monolithic folder structure.

Makefile

Customize your build, test, deploy, clean, ect..

cmd folder

Meant to hold application entry points (main functions). The entry points are used to set up and configure each application.

pkg folder

Internal packages not significant enough to be standalone.

bin folder

Meant to hold binaries. Complied application binaries would be generated from the makefile and moved here.

scripts folder

Place scripts here. Deploy!

documents folder

For all documentation. Remember to use GoDoc's!

final thoughts

Remember this is just a suggestion. Golang does not force a folder convention.

You can’t perform that action at this time.