1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-19 09:02:39 +08:00
This commit is contained in:
2022-05-06 17:29:35 +08:00
parent 25af24d7c0
commit cd0740f443
12 changed files with 102 additions and 6 deletions

View File

@ -10,5 +10,11 @@ type Map[K constraints.Ordered, V any] interface {
Clone() Map[K, V]
Clear()
Count() int
Iter() <-chan *Entry[K, V]
ForEach(f func(K, V))
}
type Entry[K constraints.Ordered, V any] struct {
Key K
Value V
}