feat(golang): add `gofx` alias for `go fix` (#10220)

Closes #10220

Co-authored-by: Chaithanya Naik <chaithanyampcrl@gmail.com>
master
CleanMachine1 5 years ago committed by Marc Cornellà
parent 96e473a1d6
commit 8e7cbafb32
No known key found for this signature in database
GPG Key ID: 314585E776A9C1B
  1. 1
      plugins/golang/README.md
  2. 1
      plugins/golang/golang.plugin.zsh

@ -18,6 +18,7 @@ plugins=(... golang)
| god | `go doc` | Prints documentation comments |
| gof | `go fmt` | Gofmt formats (aligns and indents) Go programs. |
| gofa | `go fmt ./...` | Run go fmt for all packages in current directory, recursively |
| gofx | `go fix` | Update packages to use a new API |
| gog | `go get` | Downloads packages and then installs them to $GOPATH |
| gog | `go get ./...` | Installs all dependencies in current directory, recursively |
| goi | `go install` | Compiles and installs packages to $GOPATH |

@ -262,6 +262,7 @@ alias goc='go clean'
alias god='go doc'
alias gof='go fmt'
alias gofa='go fmt ./...'
alias gofx='go fix'
alias gog='go get'
alias goga='go get ./...'
alias goi='go install'

Loading…
Cancel
Save