go/src/bytes
Jes Cok b46aec0765 bytes,internal/bytealg: eliminate HashStrBytes,HashStrRevBytes using …
…generics

The logic of HashStrBytes, HashStrRevBytes and HashStr, HashStrRev,
are exactly the same, except that the types are different.

Since the bootstrap toolchain is bumped to 1.20, we can eliminate them
by using generics.

Change-Id: I4336b1cab494ba963f09646c169b45f6b1ee62e3
GitHub-Last-Rev: b11a2bf947
GitHub-Pull-Request: golang/go#63766
Reviewed-on: https://go-review.googlesource.com/c/go/+/538175
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-10-27 15:55:16 +00:00
..
boundary_test.go
buffer.go bytes,strings: add available godoc link 2023-10-13 17:10:31 +00:00
buffer_test.go std: fix various nilness findings 2023-04-20 01:07:29 +00:00
bytes.go bytes,internal/bytealg: eliminate HashStrBytes,HashStrRevBytes using … 2023-10-27 15:55:16 +00:00
bytes_test.go internal/bytealg: fix alignment code in equal_riscv64.s 2023-06-29 02:34:59 +00:00
compare_test.go bytes: remove builders check from compare test 2023-07-13 23:11:42 +00:00
example_test.go bytes,strings: add example for ContainsFunc 2023-10-09 22:05:38 +00:00
export_test.go
reader.go bytes,strings: add available godoc link 2023-10-13 17:10:31 +00:00
reader_test.go