go:tooling:go_command
Table of Contents
Go command
What is it?
`go` is the official command-line tool for Go to build, run, test, and manage modules.
What is it used for?
- Run programs quickly during development.
- Build binaries for deployment.
- Run tests and benchmarks.
- Manage dependencies with Go modules.
Examples
- Check Go version:
go version
- Run the project in the current folder:
go run .
- Build a binary:
go build -o app
- Run tests for all packages:
go test ./...
Hard words (English)
- command-line /kəˈmænd laɪn/: dòng lệnh
- tool /tuːl/: công cụ
- binary /ˈbaɪnəri/: file thực thi
- deploy /dɪˈplɔɪ/: triển khai
- dependency /dɪˈpendənsi/: phụ thuộc
go/tooling/go_command.txt · Last modified: by phong2018
