chore: better go configs
parent
89320851fa
commit
e6c6530ffd
|
@ -1,14 +1,14 @@
|
||||||
# Go
|
# Go
|
||||||
|
|
||||||
| Distribution | Package |
|
| Distribution | Package |
|
||||||
| ------------ | ---------------- |
|
| ------------ | ----------------------------- |
|
||||||
| Arch Linux | `go`, `go-tools` |
|
| Arch Linux | `go`, `go-tools` |
|
||||||
| Fedora | `golang` |
|
| Fedora | `golang` |
|
||||||
| Snap | `go` |
|
| Snap | [Go](https://snapcraft.io/go) |
|
||||||
|
|
||||||
Add to `~/.bashrc`:
|
Add to `~/.bashrc`, `~/.zshrc`:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
export GOPATH=$HOME/go
|
export GOPATH=$HOME/go
|
||||||
export PATH="$PATH:$GOPATH/bin"
|
export PATH="$PATH:$GOPATH/bin"
|
||||||
```
|
```
|
||||||
|
@ -25,10 +25,10 @@ export PATH="$PATH:$GOPATH/bin"
|
||||||
|
|
||||||
## Helpful
|
## Helpful
|
||||||
|
|
||||||
[goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports?tab=doc)
|
[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)
|
[GolangCI-Lint](https://github.com/golangci/golangci-lint)
|
||||||
|
|
||||||
[panicparse](https://github.com/maruel/panicparse)
|
[vim-go](https://github.com/fatih/vim-go)
|
||||||
|
|
||||||
[gomock](https://github.com/golang/mock)
|
|
||||||
|
|
|
@ -149,7 +149,6 @@ Install [Xfce](https://wiki.archlinux.org/index.php/xfce#Installation)
|
||||||
pacman -Syu xfce4 xfce4-goodies
|
pacman -Syu xfce4 xfce4-goodies
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Install and enable [GDM](https://wiki.archlinux.org/index.php/GDM) for GNOME:
|
Install and enable [GDM](https://wiki.archlinux.org/index.php/GDM) for GNOME:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
Loading…
Reference in New Issue