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` does separate the two in > different groups. > > My instinct is that both should produce the same output, since both are > part of the Go project. Right now, the output of both differs and it means > that everytime a teamate uses `goimports` after I used `gofmt` on the same > file, the two files will have extra lines in the diff because of those > sorts. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.