1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

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

Closes #10220

Co-authored-by: Chaithanya Naik <chaithanyampcrl@gmail.com>
This commit is contained in:
CleanMachine1 2021-09-24 23:08:38 +01:00 committed by Marc Cornellà
parent 96e473a1d6
commit 8e7cbafb32
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B
2 changed files with 2 additions and 0 deletions

View file

@ -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 |

View file

@ -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'