Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
37d9e1ae
Unverified
Commit
37d9e1ae
authored
May 07, 2022
by
milinches
Committed by
Carlo Sala
Nov 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(golang): add `goe`, `gove` aliases
Closes #10914
parent
a482a029
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
README.md
plugins/golang/README.md
+3
-1
golang.plugin.zsh
plugins/golang/golang.plugin.zsh
+2
-0
No files found.
plugins/golang/README.md
View file @
37d9e1ae
...
...
@@ -16,11 +16,12 @@ plugins=(... golang)
| gob |
`go build`
| Build your code |
| goc |
`go clean`
| Removes object files from package source directories |
| god |
`go doc`
| Prints documentation comments |
| goe |
`go env`
| Prints Go environment information |
| 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 |
| gog
a
|
`go get ./...`
| Installs all dependencies in current directory, recursively |
| goi |
`go install`
| Compiles and installs packages to $GOPATH |
| gol |
`go list`
| Lists Go packages |
| gom |
`go mod`
| Access to operations on modules |
...
...
@@ -35,4 +36,5 @@ plugins=(... golang)
| 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 |
| gove |
`go version`
| Prints Go version |
| gow |
`go work`
| Work provides access to operations on workspaces |
plugins/golang/golang.plugin.zsh
View file @
37d9e1ae
...
...
@@ -13,6 +13,7 @@ unset p
alias
gob
=
'go build'
alias
goc
=
'go clean'
alias
god
=
'go doc'
alias
goe
=
'go env'
alias
gof
=
'go fmt'
alias
gofa
=
'go fmt ./...'
alias
gofx
=
'go fix'
...
...
@@ -32,4 +33,5 @@ alias gotoc='go tool compile'
alias
gotod
=
'go tool dist'
alias
gotofx
=
'go tool fix'
alias
gov
=
'go vet'
alias
gove
=
'go version'
alias
gow
=
'go work'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment