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