go/api/next
Alan Donovan 330aec8109 hash/maphash: add Hasher interface and ComparableHasher impl
Hasher is the standard interface for expressing custom hash
functions and equivalence relations for arbitrary data types.
This allows them to be used in hash-based collection types
such as a hash table (CL 612217) or a Bloom filter (CL 740440).

The ComparableHasher type is an implementation of the Hasher
interface for comparable values that is consistent with their
usual equivalence relation (==).

Fixes #70471

Change-Id: Iaa42eb7017d9c4dab487ad6c842c68a81fa7d28a
Reviewed-on: https://go-review.googlesource.com/c/go/+/657296
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Hongxiang Jiang <hxjiang@golang.org>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
TryBot-Bypass: Alan Donovan <adonovan@google.com>
2026-04-03 08:21:15 -07:00
..
70471.txt hash/maphash: add Hasher interface and ComparableHasher impl 2026-04-03 08:21:15 -07:00
73450.txt net/url: add Values.Clone 2026-03-06 10:48:32 -08:00
74958.txt go/scanner: add End method to Scanner 2026-01-28 22:44:07 -08:00
75500.txt net/http: Add Server.DisableClientPriority field 2026-01-22 14:02:25 -08:00
76285.txt go/token: add File.String method 2026-02-23 07:48:58 -08:00
77169.txt testing/synctest: add Sleep 2026-02-02 14:43:36 -08:00
77266.txt all: update to Unicode 17 2026-01-22 13:16:03 -08:00