CmdID

CmdID / Commands

go-build

Compile Go sources. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Compile a 'package main' file (output will be the filename without extension)

go build path/to/main.goIdentify

Compile, specifying the output filename

go build -o path/to/binary path/to/source.goIdentify

Compile a package

go build -o path/to/binary path/to/packageIdentify

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

go build -race -o path/to/executable path/to/main_packageIdentify