go-build: add page (#4003)

Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
gonejack
2020-05-08 20:40:54 +08:00
committed by Starbeamrainbowlabs
parent be4d64baf2
commit 799b2d39ed

12
pages/common/go-build.md Normal file
View File

@@ -0,0 +1,12 @@
# go build
> Tool for compiling packages and dependencies.
> More information: <https://golang.org/cmd/go/>.
- Compile a source file into a named executable:
`go build -o {{executable}} {{path/to/main/file}}.go`
- Compile a main package into a named executable:
`go build -o {{executable}} {{path/to/main/package}}`