Using the amazing book by Jon Bodner: Learning Go An Idiomatic Approach to Real-World Go Programming
A Go project is called a module. A module is not just source code. It is also an exact specification of the dependencies of the code within the module. Every module has a go.mod file in its root directory.
go mod init <program_name>
go build -o build/go_app
./executable_name
Alternatively, just run make
using the Makefile
in the directory.