Go - go (The Go tool)

About

https://golang.org/cmd/go/

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.

Sub-command

Build / Compile

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

Install

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