After viewing the go tool source code, along with reading this SO answer (and the linked article): What is a sensible way to layout a Go project (Separate your binary from your application)
E.g. the following setup:
myapp/
cmd/
first/
main.go
second/
main.go
third/
main.go
otherpackage/
I am curious as to how you would go about implementing/building/debugging such a solution?
Am I supposed to have a main.go in the root which then somehow executes the different packages in the cmd directory depending on which command the user runs? Or how do I build this multi-command package without a 'main' package in root?