go:tooling:go_command
Differences
This shows you the differences between two versions of the page.
| go:tooling:go_command [2025/12/28 22:40] – created phong2018 | go:tooling:go_command [2025/12/28 22:41] (current) – phong2018 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== go command ===== | + | ===== Go command ===== |
| - | ==== Là gì? ==== | + | ==== What is it? ==== |
| - | `go` là command-line tool (công cụ dòng lệnh) chính thức của Go để build/run/test và quản lý module. | + | `go` is the official |
| - | ==== Để làm gì? ==== | + | ==== What is it used for? ==== |
| - | * Chạy chương trình nhanh. | + | * Run programs quickly during development. |
| - | * Build ra file binary để deploy. | + | * Build binaries for deployment. |
| - | * Chạy test, benchmark. | + | * Run tests and benchmarks. |
| - | * Quản lý dependency bằng go modules. | + | * Manage dependencies with Go modules. |
| - | ==== Ví dụ sử dụng | + | ==== Examples |
| - | * Xem phiên bản: | + | * Check Go version: |
| <code bash> | <code bash> | ||
| go version | go version | ||
| </ | </ | ||
| - | * Chạy | + | * Run the project |
| <code bash> | <code bash> | ||
| go run . | go run . | ||
| </ | </ | ||
| - | * Build ra binary: | + | * Build a binary: |
| <code bash> | <code bash> | ||
| go build -o app | go build -o app | ||
| </ | </ | ||
| - | * Chạy test toàn bộ packages: | + | * Run tests for all packages: |
| <code bash> | <code bash> | ||
| go test ./... | go test ./... | ||
| </ | </ | ||
| - | ==== Từ khó (English) ==== | + | ==== Hard words (English) ==== |
| * **command-line** /kəˈmænd laɪn/: dòng lệnh | * **command-line** /kəˈmænd laɪn/: dòng lệnh | ||
| * **tool** /tuːl/: công cụ | * **tool** /tuːl/: công cụ | ||
go/tooling/go_command.txt · Last modified: by phong2018
