Files
mihomo/common/maphash/comparable_go124.go
2025-11-03 15:34:46 +08:00

16 lines
277 B
Go

//go:build go1.24
package maphash
import "hash/maphash"
func Comparable[T comparable](seed Seed, v T) uint64 {
return maphash.Comparable(seed, v)
}
func WriteComparable[T comparable](h *Hash, x T) {
maphash.WriteComparable(h, x)
}
const testComparableAllocations = true