my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
2.5 KiB

3 years ago
  1. # Golang plugin
  2. This plugin adds completion for the [Go Programming Language](https://golang.org/),
  3. as well as some aliases for common Golang commands.
  4. To use it, add `golang` to the plugins array in your zshrc file:
  5. ```zsh
  6. plugins=(... golang)
  7. ```
  8. ## Aliases
  9. | Alias | Command | Description |
  10. | ------ | ----------------- | ------------------------------------------------------------- |
  11. | gob | `go build` | Build your code |
  12. | goc | `go clean` | Removes object files from package source directories |
  13. | god | `go doc` | Prints documentation comments |
  14. | gof | `go fmt` | Gofmt formats (aligns and indents) Go programs. |
  15. | gofa | `go fmt ./...` | Run go fmt for all packages in current directory, recursively |
  16. | gofx | `go fix` | Update packages to use a new API |
  17. | gog | `go get` | Downloads packages and then installs them to $GOPATH |
  18. | gog | `go get ./...` | Installs all dependencies in current directory, recursively |
  19. | goi | `go install` | Compiles and installs packages to $GOPATH |
  20. | gol | `go list` | Lists Go packages |
  21. | gom | `go mod` | Access to operations on modules |
  22. | gopa | `cd $GOPATH` | Takes you to `$GOPATH` |
  23. | gopb | `cd $GOPATH/bin` | Takes you to `$GOPATH/bin` |
  24. | gops | `cd $GOPATH/src` | Takes you to `$GOPATH/src` |
  25. | gor | `go run` | Compiles and runs your code |
  26. | got | `go test` | Runs tests |
  27. | gota | `go test ./...` | Runs tests in all subdirectories |
  28. | goto | `go tool` | Prints all the available tools |
  29. | gotoc | `go tool compile` | Generates object file |
  30. | gotod | `go tool dist` | Utility to bootstrap, build and test go runtime |
  31. | gotofx | `go tool fix` | Fixes an application to use newer features |
  32. | gov | `go vet` | Vet examines Go source code and reports suspicious constructs |