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