https://github.com/survivorbat/go-tsyncmap
Generic implementation of sync.Map
https://github.com/survivorbat/go-tsyncmap
generic go golang gopkg library map package sync syncmap type types
Last synced: 12 days ago
JSON representation
Generic implementation of sync.Map
- Host: GitHub
- URL: https://github.com/survivorbat/go-tsyncmap
- Owner: survivorbat
- License: mit
- Created: 2023-01-15T09:59:01.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-20T15:44:11.000Z (over 2 years ago)
- Last Synced: 2024-12-31T00:27:41.109Z (about 1 year ago)
- Topics: generic, go, golang, gopkg, library, map, package, sync, syncmap, type, types
- Language: Go
- Homepage: https://pkg.go.dev/github.com/survivorbat/go-tsyncmap
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# πΊοΈοΈ Generic sync.Map
[](https://github.com/survivorbat/go-tsyncmap/actions/workflows/test.yaml)


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