89596597e99676329846efcf9e8512fc389d96cd
- Author
- Chaithanya Naik <chaithanyampcrl@gmail.com>
- Committer
- Marc Cornellà <hello@mcornella.com>
- Date
Message
feat(golang): add aliases for `go tool` utility (#10361)
Closes #10361
Diff
1diff --git a/plugins/golang/README.md b/plugins/golang/README.md
2index 1dc9b080b684ce076561a191a671949aba353629..8bfe3ae3dcfd6d884406811565338b8d3f3b3505 100644
3--- a/plugins/golang/README.md
4+++ b/plugins/golang/README.md
5@@ -30,4 +30,8 @@ plugins=(... golang)
6 | gor | `go run` | Compiles and runs your code |
7 | got | `go test` | Runs tests |
8 | gota | `go test ./...` | Runs tests in all subdirectories |
9+| goto | `go tool` | Prints all the available tools |
10+| gotoc | `go tool compile` | Generates object file |
11+| gotod | `go tool dist` | Utility to bootstrap, build and test go runtime |
12+| gotofx | `go tool fix` | Fixes an application to use newer features |
13 | gov | `go vet` | Vet examines Go source code and reports suspicious constructs |
14diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh
15index 05196acc041842ce9f90227902d00b02ccaa3fc6..3ef9da6aa87226ef355f5fd3da25c88ccb178b7c 100644
16--- a/plugins/golang/golang.plugin.zsh
17+++ b/plugins/golang/golang.plugin.zsh
18@@ -274,4 +274,8 @@ alias gops='cd $GOPATH/src'
19 alias gor='go run'
20 alias got='go test'
21 alias gota='go test ./...'
22+alias goto='go tool'
23+alias gotoc='go tool compile'
24+alias gotod='go tool dist'
25+alias gotofx='go tool fix'
26 alias gov='go vet'