Go - go (The Go tool)



The go tool builds source packages and installs the resulting binaries to the pkg and bin directories of the workspace

The go tool will only print output when an error occurs.


Build / Compile

go build pathToGoPackageFromGoPathSrc
# or (default to the current directory)
go build 


go install pathToGoScriptFromGoPathSrc

put an executable command named hello (or hello.exe) inside the bin directory of your workspace

Whenever the go tool installs a package or binary, it also installs whatever dependencies it has in the pkg directory of the workspace

Powered by ComboStrap