encoding/binary: can't compare NativeEndian with LittleEndian/BigEndian #63611
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
TL;DR:
binary.NativeEndian == binary.BigEndian
doesn't work.Follow-up on #57237.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What did you do?
https://go.dev/play/p/PIdcmG89Rp-
What did you expect to see?
I expect this program to compile and to allow me to simply determine if the platform is big endian or little endian as a boolean value.
As the author of package
github.com/dolmen-go/endian
which providedNative
long before and has this feature, I miss that.What did you see instead?
The text was updated successfully, but these errors were encountered: