fmt: inconsistency on #v printing of byte array #44391
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Unfortunate
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://play.golang.org/p/Kmu-21IzT4O
What did you expect to see?
i expect consistency like this:
[]byte{0x1, 0x2, 0x3, 0x4}
&[]byte{0x1, 0x2, 0x3, 0x4}
OR
[]uint8{0x1, 0x2, 0x3, 0x4}
&[]uint8{0x1, 0x2, 0x3, 0x4}
What did you see instead?
[]byte{0x1, 0x2, 0x3, 0x4}
&[]uint8{0x1, 0x2, 0x3, 0x4}
The text was updated successfully, but these errors were encountered: