mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 12:26:03 +02:00
go-build: add page (#4003)
Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
parent
be4d64baf2
commit
799b2d39ed
1 changed files with 12 additions and 0 deletions
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}}`
|
Loading…
Add table
Reference in a new issue