summaryrefslogtreecommitdiff
path: root/plugins/golang
diff options
context:
space:
mode:
authorChaithanya Naik <chaithanyampcrl@gmail.com>2021-10-30 11:14:51 +0530
committerMarc Cornellà <hello@mcornella.com>2021-12-26 20:23:19 +0100
commit89596597e99676329846efcf9e8512fc389d96cd (patch)
tree4489741fe5731a9ac7d03fb6c947c3bc5afa2d9c /plugins/golang
parent8e7cbafb3249993ff152f456ceff60723917755b (diff)
downloadzsh-89596597e99676329846efcf9e8512fc389d96cd.tar.gz
zsh-89596597e99676329846efcf9e8512fc389d96cd.tar.bz2
zsh-89596597e99676329846efcf9e8512fc389d96cd.zip
feat(golang): add aliases for `go tool` utility (#10361)
Closes #10361
Diffstat (limited to 'plugins/golang')
-rw-r--r--plugins/golang/README.md4
-rw-r--r--plugins/golang/golang.plugin.zsh4
2 files changed, 8 insertions, 0 deletions
diff --git a/plugins/golang/README.md b/plugins/golang/README.md
index 1dc9b080b..8bfe3ae3d 100644
--- a/plugins/golang/README.md
+++ b/plugins/golang/README.md
@@ -30,4 +30,8 @@ plugins=(... golang)
| gor | `go run` | Compiles and runs your code |
| got | `go test` | Runs tests |
| gota | `go test ./...` | Runs tests in all subdirectories |
+| goto | `go tool` | Prints all the available tools |
+| gotoc | `go tool compile` | Generates object file |
+| gotod | `go tool dist` | Utility to bootstrap, build and test go runtime |
+| gotofx | `go tool fix` | Fixes an application to use newer features |
| gov | `go vet` | Vet examines Go source code and reports suspicious constructs |
diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh
index 05196acc0..3ef9da6aa 100644
--- a/plugins/golang/golang.plugin.zsh
+++ b/plugins/golang/golang.plugin.zsh
@@ -274,4 +274,8 @@ alias gops='cd $GOPATH/src'
alias gor='go run'
alias got='go test'
alias gota='go test ./...'
+alias goto='go tool'
+alias gotoc='go tool compile'
+alias gotod='go tool dist'
+alias gotofx='go tool fix'
alias gov='go vet'