Go version
go version go1.25.5 darwin/arm64
Description
I noticed that gofmt produces the following formatting for a byte slice literal:
fr.Write([]byte{
0x00, // Preamble
0x00, 0xFF, // Start code
dlen, // LEN
^dlen + 1, // LCS
tfi, // Type of Frame Identifier
})
My expectation was that comments would remain aligned consistently. Is this a known limitation or intended behavior of gofmt? Apologies if this was already reported.
(Go 1.24 produces the same output: https://go.dev/play/p/jxcnuqd6IsA?v=goprev)
Go version
go version go1.25.5 darwin/arm64
Description
I noticed that gofmt produces the following formatting for a byte slice literal:
My expectation was that comments would remain aligned consistently. Is this a known limitation or intended behavior of gofmt? Apologies if this was already reported.
(Go 1.24 produces the same output: https://go.dev/play/p/jxcnuqd6IsA?v=goprev)