37d9e1aee9289025373d3f840ead74897206d73f

Author
milinches <ibrogenius5165@gmail.com>
Committer
Carlo Sala <carlosalag@protonmail.com>
Date

Message

feat(golang): add `goe`, `gove` aliases

Closes #10914

Diff

 1diff --git a/plugins/golang/README.md b/plugins/golang/README.md
 2index 3b7d1e19f9718b4606c3155dea33ac318cba077b..128cc7fbb0d2253ed7677c4a380a2266368c5896 100644
 3--- a/plugins/golang/README.md
 4+++ b/plugins/golang/README.md
 5@@ -16,11 +16,12 @@ plugins=(... golang)
 6 | gob    | `go build`        | Build your code                                               |
 7 | goc    | `go clean`        | Removes object files from package source directories          |
 8 | god    | `go doc`          | Prints documentation comments                                 |
 9+| goe    | `go env`          | Prints Go environment information                             |
10 | gof    | `go fmt`          | Gofmt formats (aligns and indents) Go programs.               |
11 | gofa   | `go fmt ./...`    | Run go fmt for all packages in current directory, recursively |
12 | gofx   | `go fix`          | Update packages to use a new API                              |
13 | gog    | `go get`          | Downloads packages and then installs them to $GOPATH          |
14-| gog    | `go get ./...`    | Installs all dependencies in current directory, recursively   |
15+| goga   | `go get ./...`    | Installs all dependencies in current directory, recursively   |
16 | goi    | `go install`      | Compiles and installs packages to $GOPATH                     |
17 | gol    | `go list`         | Lists Go packages                                             |
18 | gom    | `go mod`          | Access to operations on modules                               |
19@@ -35,4 +36,5 @@ plugins=(... golang)
20 | gotod  | `go tool dist`    | Utility to bootstrap, build and test go runtime               |
21 | gotofx | `go tool fix`     | Fixes an application to use newer features                    |
22 | gov    | `go vet`          | Vet examines Go source code and reports suspicious constructs |
23+| gove   | `go version`      | Prints Go version                                             |
24 | gow    | `go work`         | Work provides access to operations on workspaces              |
25diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh
26index 0dbaab0696a42fbe0bd22dcfaf9e7b987672d1e2..45ccd3a1c0685ee4e848c8b8f3aac3c17747053d 100644
27--- a/plugins/golang/golang.plugin.zsh
28+++ b/plugins/golang/golang.plugin.zsh
29@@ -13,6 +13,7 @@ unset p
30 alias gob='go build'
31 alias goc='go clean'
32 alias god='go doc'
33+alias goe='go env'
34 alias gof='go fmt'
35 alias gofa='go fmt ./...'
36 alias gofx='go fix'
37@@ -32,4 +33,5 @@ alias gotoc='go tool compile'
38 alias gotod='go tool dist'
39 alias gotofx='go tool fix'
40 alias gov='go vet'
41+alias gove='go version'
42 alias gow='go work'