2020-04-18 20:21:04 +00:00
|
|
|
# Go
|
|
|
|
|
2020-07-10 10:57:16 +00:00
|
|
|
| Distribution | Package |
|
|
|
|
| ------------ | ---------------- |
|
|
|
|
| Arch Linux | `go`, `go-tools` |
|
2020-12-01 16:10:02 +00:00
|
|
|
| Fedora | `golang` |
|
2020-07-10 10:57:16 +00:00
|
|
|
| Snap | `go` |
|
2020-05-01 16:52:30 +00:00
|
|
|
|
2020-05-09 18:30:08 +00:00
|
|
|
Add to `~/.bashrc`:
|
2020-05-05 03:31:17 +00:00
|
|
|
|
2020-05-09 18:30:08 +00:00
|
|
|
```bash
|
2020-04-18 20:21:04 +00:00
|
|
|
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/)
|
|
|
|
|
2020-08-12 03:39:49 +00:00
|
|
|
## Helpful
|
2020-04-18 20:21:04 +00:00
|
|
|
|
|
|
|
[goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports?tab=doc)
|
|
|
|
|
|
|
|
[GolangCI-Lint](https://github.com/golangci/golangci-lint)
|
2020-08-12 03:39:49 +00:00
|
|
|
|
|
|
|
[panicparse](https://github.com/maruel/panicparse)
|
|
|
|
|
|
|
|
[gomock](https://github.com/golang/mock)
|