til/Development/Go/README.md

35 lines
916 B
Markdown

# [Go](https://golang.org/)
| Distribution | Package |
| ------------ | ----------------------------- |
| Arch Linux | `go`, `go-tools` |
| Fedora | `golang` |
| Snap | [Go](https://snapcraft.io/go) |
Add to `~/.bashrc`, `~/.zshrc`:
```sh
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
[gomock](https://github.com/golang/mock)
[goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports)
[GolangCI-Lint](https://github.com/golangci/golangci-lint)
[vim-go](https://github.com/fatih/vim-go)