Unverified Commit 8e7cbafb authored by CleanMachine1's avatar CleanMachine1 Committed by Marc Cornellà

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

Closes #10220
Co-authored-by: 's avatarChaithanya Naik <chaithanyampcrl@gmail.com>
parent 96e473a1
...@@ -18,6 +18,7 @@ plugins=(... golang) ...@@ -18,6 +18,7 @@ plugins=(... golang)
| god | `go doc` | Prints documentation comments | | god | `go doc` | Prints documentation comments |
| gof | `go fmt` | Gofmt formats (aligns and indents) Go programs. | | gof | `go fmt` | Gofmt formats (aligns and indents) Go programs. |
| gofa | `go fmt ./...` | Run go fmt for all packages in current directory, recursively | | 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` | Downloads packages and then installs them to $GOPATH |
| gog | `go get ./...` | Installs all dependencies in current directory, recursively | | gog | `go get ./...` | Installs all dependencies in current directory, recursively |
| goi | `go install` | Compiles and installs packages to $GOPATH | | goi | `go install` | Compiles and installs packages to $GOPATH |
......
...@@ -262,6 +262,7 @@ alias goc='go clean' ...@@ -262,6 +262,7 @@ alias goc='go clean'
alias god='go doc' alias god='go doc'
alias gof='go fmt' alias gof='go fmt'
alias gofa='go fmt ./...' alias gofa='go fmt ./...'
alias gofx='go fix'
alias gog='go get' alias gog='go get'
alias goga='go get ./...' alias goga='go get ./...'
alias goi='go install' alias goi='go install'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment