go
Tool for managing go source code.
Install
- All systems
-
curl cmd.cat/go.sh
- Debian
-
apt-get install golang-bin
- Ubuntu
-
apt-get install golang-bin
-
Alpine
-
apk add go
- Arch Linux
-
pacman -S go
- Kali Linux
-
apt-get install golang-bin
- Fedora
-
dnf install golang-bin
- OS X
-
brew install go
- Raspbian
-
apt-get install golang-bin
- Docker
-
docker run cmd.cat/go go
powered by Commando
Tool for managing go source code.
-
Download and install a package, specified by its import path:
go get package_path
-
Compile and run a source file (it has to contain a `main` package):
go run file.go
-
Compile a source file into a named executable:
go build -o executable file.go
-
Compile the package present in the current directory:
go build
-
Execute all test cases of the current package (files have to end with `_test.go`):
go test
-
Compile and install the current package:
go install
© tl;dr; authors and contributors