better go
parent
593cb99812
commit
1da4c4a3f5
|
@ -22,6 +22,12 @@ go mod tidy
|
||||||
go mod vendor
|
go mod vendor
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Outside modules:
|
||||||
|
|
||||||
|
```
|
||||||
|
GOMODULE11=on go get example.com/foo/bar
|
||||||
|
```
|
||||||
|
|
||||||
In world of corporation, we work with private repository, add to `~/.bashrc`, `~/.zshrc`:
|
In world of corporation, we work with private repository, add to `~/.bashrc`, `~/.zshrc`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
|
@ -22,8 +22,12 @@ export PATH="$PATH:$GOPATH/bin"
|
||||||
|
|
||||||
[Thanos Coding Style Guide](https://thanos.io/contributing/coding-style-guide.md/)
|
[Thanos Coding Style Guide](https://thanos.io/contributing/coding-style-guide.md/)
|
||||||
|
|
||||||
## Helpful programs
|
## Helpful
|
||||||
|
|
||||||
[goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports?tab=doc)
|
[goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports?tab=doc)
|
||||||
|
|
||||||
[GolangCI-Lint](https://github.com/golangci/golangci-lint)
|
[GolangCI-Lint](https://github.com/golangci/golangci-lint)
|
||||||
|
|
||||||
|
[panicparse](https://github.com/maruel/panicparse)
|
||||||
|
|
||||||
|
[gomock](https://github.com/golang/mock)
|
||||||
|
|
Loading…
Reference in New Issue