mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-05 04:11:59 +00:00
all: use reflect.TypeFor now available in Go 1.22 (#11078)
Updates #cleanup Signed-off-by: Joe Tsai <joetsai@digital-static.net>
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
timeTimeType = reflect.TypeOf((*time.Time)(nil)).Elem()
|
||||
netipAddrType = reflect.TypeOf((*netip.Addr)(nil)).Elem()
|
||||
selfHasherType = reflect.TypeOf((*SelfHasher)(nil)).Elem()
|
||||
timeTimeType = reflect.TypeFor[time.Time]()
|
||||
netipAddrType = reflect.TypeFor[netip.Addr]()
|
||||
selfHasherType = reflect.TypeFor[SelfHasher]()
|
||||
)
|
||||
|
||||
// typeIsSpecialized reports whether this type has specialized hashing.
|
||||
|
||||
Reference in New Issue
Block a user