fmt: %#v
does not produce coherently formatted code according to go fmt
#51571
Labels
%#v
does not produce coherently formatted code according to go fmt
#51571
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/YOTYntHzfWq
What did you expect to see?
What did you see instead?
Comment
It's no biggie, really. I just thought that since that verb bothers placing the space after the comma, it should in my opinion, go the extra mile and produce a nicely formatted Go code.
For clarity, let me explain why this is a issue. I'm using
go generate
to produce some code that I don't want to version control (yeah I know, it won't bego get
-table), and when I rungo fmt
I don't want those file names to end up in the output.Alternatively, I could just put all the generated files in a separated package and esclude it from
go fmt
, but stil...The text was updated successfully, but these errors were encountered: