]> Cypherpunks repositories - gostls13.git/commit
compress/zlib: use binary.BigEndian consistently
authorJoe Tsai <joetsai@digital-static.net>
Wed, 14 Sep 2022 05:20:06 +0000 (22:20 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 27 Feb 2023 18:51:27 +0000 (18:51 +0000)
commit9a199d42dab00636f503c47ac4e02595765373f2
treea19b9d2db1cedfac5f2c2a5fc8209fcb9f8f2275
parent8538477d58b97ad7f5c91c9c5b7007404f2a6dac
compress/zlib: use binary.BigEndian consistently

One major reason to avoid binary.BigEndian is because
the binary package includes a transitive dependency on reflect.
See #54097.

Given that writer.go already depends on the binary package,
embrace use of it consistently where sensible.
We should either embrace use of binary or fully avoid it.

Change-Id: I5f2d27d0ed8cab5ac54be02362c7d33276dd4b9a
Reviewed-on: https://go-review.googlesource.com/c/go/+/452176
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Joseph Tsai <joetsai@digital-static.net>
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/compress/zlib/reader.go
src/compress/zlib/writer.go