This is the first post on a series of post that I will be posting as part of myself learning golang.
Let's consider the project structure as :
* main.goNOTE — Current working directory — learnGo
There are several commands to build a go project :
go run Example - go run src/github.com/anyjoe/helloworld/main.gogo build ./Example - go build src/github.com/anyjoe/helloworld
./helloworldgo install bin/Example - go install src/github.com/anyjoe/helloworld
Building a project in general is fairly simple. If you use an IDE like me then you can preconfigure a go build configuration.