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