User Tools

Site Tools


go:tooling:go_command

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

go:tooling:go_command [2025/12/28 22:40] – created phong2018go: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 command-line tool for Go to buildruntest, and manage modules.
  
-==== Để 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
     </code>     </code>
  
-  * Chạy project tại thư mục hiện tại:+  * Run the project in the current folder:
     <code bash>     <code bash>
     go run .     go run .
     </code>     </code>
  
-  * Build ra binary:+  * Build binary:
     <code bash>     <code bash>
     go build -o app     go build -o app
     </code>     </code>
  
-  * Chạy test toàn bộ packages:+  * Run tests for all packages:
     <code bash>     <code bash>
     go test ./...     go test ./...
     </code>     </code>
  
-==== 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.1766961635.txt.gz · Last modified: by phong2018