til/Development/Go/README.md

33 lines
779 B
Markdown
Raw Normal View History

2021-02-17 16:38:17 +00:00
# [Go](https://golang.org/)
2020-04-18 20:21:04 +00:00
2021-04-03 16:58:41 +00:00
| Distribution | Package |
| ------------ | ---------------- |
| Arch Linux | `go`, `go-tools` |
2021-02-17 16:32:20 +00:00
Add to `~/.bashrc`, `~/.zshrc`:
2020-05-05 03:31:17 +00:00
2021-02-17 16:32:20 +00:00
```sh
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
2021-02-17 16:32:20 +00:00
[gomock](https://github.com/golang/mock)
2020-04-18 20:21:04 +00:00
2021-02-17 16:32:20 +00:00
[goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports)
2020-08-12 03:39:49 +00:00
2021-02-17 16:32:20 +00:00
[GolangCI-Lint](https://github.com/golangci/golangci-lint)
2020-08-12 03:39:49 +00:00
2021-02-17 16:32:20 +00:00
[vim-go](https://github.com/fatih/vim-go)