go-build

Compile Go sources.

TLDR

Compile a file

>_ go build [path/to/main.go]
copy

Compile, specifying the output filename

>_ go build -o [path/to/binary] [path/to/source.go]
copy

Compile a package

>_ go build -o [path/to/binary] [path/to/package]
copy

Compile a main package into an executable, with data race detection

>_ go build -race -o [path/to/executable] [path/to/main/package]
copy

Copied to clipboard
free 100$ digital ocean credit