Tips to Create a Proper Go Project Layout

Tips to Create a Proper Go Project Layout

A Go project may contain multiple files with different package names. Setting up a proper layout in these cases is not always very straightforward in Go, especially for beginners. This Go programming tutorial provides a quick overview, with a hands on example, of specific use case scenarios so that one is able to not only understand the concept behind, but also be able to create a proper layout for a Go project.

[…]

Go modules are defined by the go.mod file, which describes module properties, the Go version, and the dependencies of this project on other modules. The properties includes:

[…]

<strong>Go</strong> Package Layout Tutorial

[…]