From 8e7cbafb3249993ff152f456ceff60723917755b Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Fri, 24 Sep 2021 23:08:38 +0100 Subject: [PATCH] feat(golang): add `gofx` alias for `go fix` (#10220) Closes #10220 Co-authored-by: Chaithanya Naik --- plugins/golang/README.md | 1 + plugins/golang/golang.plugin.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/golang/README.md b/plugins/golang/README.md index af2c4dff9..1dc9b080b 100644 --- a/plugins/golang/README.md +++ b/plugins/golang/README.md @@ -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 | diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh index fce663fd6..05196acc0 100644 --- a/plugins/golang/golang.plugin.zsh +++ b/plugins/golang/golang.plugin.zsh @@ -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'