A wrap around sync.Map that uses generics.
package main
import "github.com/survivorbat/go-tsyncmap"
func main() {
myMap := tsyncmap.Map[string, string]{}
myMap.Store("a", "b")
myMap.Load("a") // Returns "b"
}
go get github.com/survivorbat/go-tsyncmap
package main
import "github.com/survivorbat/go-tsyncmap"
func main() {
myMap := tsyncmap.Map[string, string]{}
myMap.Store("a", "b")
myMap.Load("a") // Returns "b"
}
Not much.