go Command Examples

Manage Go source code. Some subcommands such as go build have their own usage documentation. More information: https://golang.org.

go get {{package_path}}

go run {{file}}.go

go build -o {{executable}} {{file}}.go

go build

go test

go install

go mod init {{module_name}}