Skip to content

MordFustang21/syncx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syncx

A generic wrapper around sync.Map. This package is made to avoid having to do typecasts when retrieving values out of the sync.Map

Install

go get github.com/mordfustang21/syncx

Example

type MyStruct struct{}

m := syncx.NewMap[comparable, MyStruct]()

out, found := m.Load("key")
// out is of type MyStruct not any

About

A generic wrapper around sync.Map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages