go-*: apply additional suggestions

Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
会有猫的
2020-05-15 00:01:50 +08:00
committed by Starbeamrainbowlabs
parent 8421b10d30
commit 4cac843cae
7 changed files with 17 additions and 17 deletions

View File

@@ -5,16 +5,16 @@
- Compile a file:
`go build path/to/main.go`
`go build {{path/to/main.go}}`
- Compile into named output:
- Compile, specifying the output filename:
`go build -o {{binary}} path/to/source.go`
`go build -o {{path/to/binary}} {{path/to/source.go}}`
- Compile a package:
`go build -o {{binary}} path/to/package`
`go build -o {{path/to/binary}} {{path/to/package}}`
- Compile a main package into an executable, with data race detection:
`go build -race -o {{executable}} path/to/main/package`
`go build -race -o {{path/to/executable}} {{path/to/main/package}}`