You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
653 B
Plaintext
24 lines
653 B
Plaintext
# 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
|
|
# learn go: /go/:learn
|
|
# search in pages: /go/~keyword
|