mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
go-build: add page (#4003)
Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
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}}`
|
Loading…
Reference in New Issue
Block a user