go-build: add page (#4003)
Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
be4d64baf2
commit
799b2d39ed
12
pages/common/go-build.md
Normal file
12
pages/common/go-build.md
Normal 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}}`
|
Reference in New Issue
Block a user