Skip to content

Commit

Permalink
go-build: add page (tldr-pages#4003)
Browse files Browse the repository at this point in the history
Signed-off-by: gonejack <[email protected]>
  • Loading branch information
gonejack authored and sbrl committed May 21, 2020
1 parent be4d64b commit 799b2d3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pages/common/go-build.md
Original file line number Diff line number Diff line change
@@ -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}}`

0 comments on commit 799b2d3

Please sign in to comment.