2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00
cheat.sheets/sheets/go
Igor Chubin 0adbf03348 Fix comment length in all first-level cheat sheets
*  sheets/MegaCli
*  sheets/az
*  sheets/azure
*  sheets/blktrace
*  sheets/emacs
*  sheets/exim
*  sheets/go
*  sheets/ipython
*  sheets/jq
*  sheets/nmap
*  sheets/perl
*  sheets/psql
*  sheets/redis
*  sheets/sed
*  sheets/smartctl
*  sheets/solidity
*  sheets/yq_v4
2020-11-22 13:10:48 +01:00

26 lines
657 B
Plaintext

# Go
# A free and open source programming language created at Google
# and go is a 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 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
# See also:
# Go language cheat sheets at /go/
# list of pages: /go/:list
# learn go: /go/:learn
# search in pages: /go/~keyword