The code of your code that you can save in the workspace. The workspace contains many source files (git, hg, svm, etc.) . The Go tool understands the layout. We do not require a Makefile or build.xml here. The main catalog layout is everything. If in any case, if you are going to change the layout of the file, accordingly you need to change the assembly.
This is a general structure that you can follow.
$ GOPATH /
src/ github.com/username/repo/ mypkg/ mysrc1.go mysrc2.go cmd/mycmd/ main.go bin/ mycmd
And this is a standard workspace
$ GOPATH /
bin/fixhub # installed binary pkg/darwin_amd64/
go get retrieves many repositories, while go install builds binary from them. Conveniently and easily go to development quickly. And everyone in the go community goes the same way. This puts src , bin and pkg in the home directory. And $ HOME / bin is already on our way before creating our workspace.
source share