30 lines
838 B
Markdown
30 lines
838 B
Markdown
# Go
|
|
|
|
| Distribution | Package |
|
|
| ------------ | ----------------------------------------------- |
|
|
| Archlinux | `go`, `go-tools` |
|
|
| Ubuntu | [See](https://github.com/golang/go/wiki/Ubuntu) |
|
|
|
|
Add to `~/.bashrc`:
|
|
|
|
```bash
|
|
export GOPATH=$HOME/go
|
|
export PATH="$PATH:$GOPATH/bin"
|
|
```
|
|
|
|
## Guideline
|
|
|
|
[CommonMistakes](https://github.com/golang/go/wiki/CommonMistakes)
|
|
|
|
[CodeReviewComments](https://github.com/golang/go/wiki/CodeReviewComments)
|
|
|
|
[Uber Go Style Guide](https://github.com/uber-go/guide/blob/master/style.md)
|
|
|
|
[Thanos Coding Style Guide](https://thanos.io/contributing/coding-style-guide.md/)
|
|
|
|
## Helpful programs
|
|
|
|
[goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports?tab=doc)
|
|
|
|
[GolangCI-Lint](https://github.com/golangci/golangci-lint)
|