mirror of
https://github.com/golang/go
synced 2024-11-25 12:27:57 -07:00
03103a54d8
Default, use hash function in the runtime package.
If the build tag is purego or raw memory cannot be hash directly,
use reflect get each field to hash separately.
Fixes #54670
Change-Id: Ic968864c9c3c51883967d4f6dc24432385c7dc79
GitHub-Last-Rev: 5ae8a28834
GitHub-Pull-Request: golang/go#69166
Reviewed-on: https://go-review.googlesource.com/c/go/+/609761
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
3 lines
145 B
Plaintext
3 lines
145 B
Plaintext
pkg hash/maphash, func Comparable[$0 comparable](Seed, $0) uint64 #54670
|
|
pkg hash/maphash, func WriteComparable[$0 comparable](*Hash, $0) #54670
|