We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)? go version go1.6 darwin/amd
go version
What operating system and processor architecture are you using (go env)? GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/hiro/.go" GORACE="" GOROOT="/Users/hiro/go1.6" GOTOOLDIR="/Users/hiro/go1.6/pkg/tool/darwin_amd64" GO15VENDOREXPERIMENT="1" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common" CXX="clang++" CGO_ENABLED="1"
go env
What did you do? I was trying to preallocate buffer for encoding. After I ran gofmt, I expected comments in expr-stmt are arranged, but not.
gofmt
package main func main() { var val []byte var name string buf := make([]byte, 24+ // min buffer size 4+len(val)+ // tagLen + value 2+len(name)+1+ // nameLen + name + '\0' 16) // checksum _ = buf }
https://play.golang.org/p/wAVUh_sGmw
What did you expect to see?
What did you see instead? same as input.
The text was updated successfully, but these errors were encountered:
Agreed that the expected output is much nicer. We should try to fix this at some point.
Sorry, something went wrong.
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.6 darwin/amd
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/hiro/.go"
GORACE=""
GOROOT="/Users/hiro/go1.6"
GOTOOLDIR="/Users/hiro/go1.6/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
What did you do?
I was trying to preallocate buffer for encoding.
After I ran
gofmt
, I expected comments in expr-stmt are arranged, but not.https://play.golang.org/p/wAVUh_sGmw
What did you expect to see?
What did you see instead?
same as input.
The text was updated successfully, but these errors were encountered: