[go-nuts] Re: Why: goimports groups imports by stdlib/non-stdlib, gofmt doesn't

2018-01-08 Thread Kallen Ding
I perfer to groups imports by stdlib and non-stdlib ! 在 2014年10月3日星期五 UTC+8上午3:28:32,Antoine Grondin写道: > > When formatting code with `cmd/gofmt`, the imports are sorted. However no > distinction is made about stdlib imports and other imports. > > However, formatting code with `cmd/goimports` d

[go-nuts] make.bash must be run from $GOROOT/src

2017-07-05 Thread Kallen Ding
I want install golang on freebsd8.4 via source tarball, I execute ` *./all.bash*` after I extract the tar and into go/src, It occurs this: ``` /usr/local/go/src/all.bash make.bash must be run from $GOROOT/src ``` My go env is: ``` [root@freebsd /usr/local/go/src]# go env GOARCH="amd64" GOBIN=""