Updating path in bash shell
build compile packages and dependencies clean remove object files doc show documentation for package or symbol env print Go environment information bug start a bug report fix run go tool fix on packages fmt run gofmt on package sources generate generate Go files by processing source get download and install packages and dependencies install compile and install packages and dependencies list list packages run compile and run Go program test test packages tool run specified go tool version print Go version vet run go tool vet on packages c calling between Go and C buildmode description of build modes filetype file types gopath GOPATH environment variable environment environment variables importpath import path syntax packages description of package lists testflag description of testing flags testfunc description of testing functions Build compiles the packages named by the import paths, along with their dependencies, but it does not install the results.
If the arguments to build are a list of files, build treats them as a list of source files specifying a single package.
The -o flag, only allowed when compiling a single package, forces build to write the resulting executable or object to the named output file, instead of the default behavior described in the last two paragraphs.
The -i flag installs the packages that are dependencies of the target. Supported only on linux/amd64, freebsd/amd64, darwin/amd64 and windows/amd64. Supported only on linux/amd64, and only with Clang/LLVM as the host C compiler.
Not all projects can follow these conventions, however.
The -x flag causes clean to print remove commands as it executes them.
For more about build flags, see 'go help build'.
To embed spaces in an element in the list, surround it with either single or double quotes.
For more about specifying packages, see 'go help packages'.
The -n flag causes clean to print the remove commands it would execute, but not run them.