map增加迭代实现

This commit is contained in:
2023-03-07 17:34:02 +08:00
parent 7c1d72f0de
commit 8e29a6318f
6 changed files with 71 additions and 0 deletions

View File

@@ -34,4 +34,6 @@ type EasyMap interface {
Exist(key interface{}) bool
GetAll() map[interface{}]interface{}
GetAllForMapKeyString() map[string]interface{}
// Iterator 对数据的迭代
Iterator(IteratorFunc)
}