So long, sync.Map
While the title is certainly a clickbait, I definitely don't see any strong reason to keep dealing with sync.Map if you're a Go generics user. Instead, you should consider xsync.MapOf:
type point struct {
x int
y int
}
// create a MapOf for w...
puzpuzpuz.dev5 min read