2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/go

24 lines
656 B
Plaintext
Raw Normal View History

2017-05-28 21:17:07 +00:00
# Go is 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
2020-03-16 19:51:55 +00:00
# learn go: /go/:learn
2017-05-28 21:17:07 +00:00
# search in pages: /go/~keyword