2021-12-26 12:37:08 -07:00
|
|
|
## completion
|
|
|
|
compctl -g "*.go" gofmt # standard go tools
|
|
|
|
compctl -g "*.go" gccgo # gccgo
|
|
|
|
|
2013-03-20 10:32:03 -07:00
|
|
|
# gc
|
2021-12-26 12:12:14 -07:00
|
|
|
for p in 5 6 8; do
|
|
|
|
compctl -g "*.${p}" ${p}l
|
|
|
|
compctl -g "*.go" ${p}g
|
2013-03-20 10:32:03 -07:00
|
|
|
done
|
2021-12-26 12:12:14 -07:00
|
|
|
unset p
|
2013-03-20 10:32:03 -07:00
|
|
|
|
2021-12-26 12:37:08 -07:00
|
|
|
## aliases
|
2016-08-21 11:06:47 -07:00
|
|
|
alias gob='go build'
|
|
|
|
alias goc='go clean'
|
|
|
|
alias god='go doc'
|
2022-05-06 22:12:22 -07:00
|
|
|
alias goe='go env'
|
2016-08-21 11:06:47 -07:00
|
|
|
alias gof='go fmt'
|
2018-08-07 13:54:45 -07:00
|
|
|
alias gofa='go fmt ./...'
|
2021-09-24 15:08:38 -07:00
|
|
|
alias gofx='go fix'
|
2016-08-21 11:06:47 -07:00
|
|
|
alias gog='go get'
|
2019-04-21 17:20:23 -07:00
|
|
|
alias goga='go get ./...'
|
2016-08-21 11:06:47 -07:00
|
|
|
alias goi='go install'
|
|
|
|
alias gol='go list'
|
2019-03-25 14:36:46 -07:00
|
|
|
alias gom='go mod'
|
2021-12-26 12:12:14 -07:00
|
|
|
alias gopa='cd $GOPATH'
|
2018-08-29 11:55:23 -07:00
|
|
|
alias gopb='cd $GOPATH/bin'
|
|
|
|
alias gops='cd $GOPATH/src'
|
2016-08-21 11:06:47 -07:00
|
|
|
alias gor='go run'
|
|
|
|
alias got='go test'
|
2021-09-16 07:44:35 -07:00
|
|
|
alias gota='go test ./...'
|
2021-10-29 22:44:51 -07:00
|
|
|
alias goto='go tool'
|
|
|
|
alias gotoc='go tool compile'
|
|
|
|
alias gotod='go tool dist'
|
|
|
|
alias gotofx='go tool fix'
|
2016-08-21 11:06:47 -07:00
|
|
|
alias gov='go vet'
|
2022-05-06 22:12:22 -07:00
|
|
|
alias gove='go version'
|
2022-08-10 07:18:59 -07:00
|
|
|
alias gow='go work'
|