mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 16:42:41 +08:00
12 lines
184 B
Go
12 lines
184 B
Go
package generics
|
|
|
|
type Map[K comparable, V any] interface {
|
|
Set(key K, value V)
|
|
Get(key K) (V, bool)
|
|
Delete(key K)
|
|
ForEach(f func(K, V))
|
|
Clone() Map[K, V]
|
|
Clear()
|
|
Count() int
|
|
}
|