Join us

The one-and-only, must-have, eternal Go project layout

The one-and-only, must-have, eternal Go project layout

According to Rob Pike, there can't be a single way to lay out a Go project. Different project types have different needs, so a good layout should follow common sense and good practices.

This article explains how to structure a Go project, from command-line tools to large application projects, while keeping import paths short and consistent. It also highlights the benefits of using dedicated directories for packages and keeps the layout simple to avoid confusion.


Only registered users can post comments. Please, login or signup.

Start blogging about your favorite technologies, reach more readers and earn rewards!

Join other developers and claim your FAUN account now!

Avatar

The FAUN

@faun
A worldwide community of developers and DevOps enthusiasts!
User Popularity
1k

Influence

115k

Total Hits

1

Posts