feat: data-driven.

This commit is contained in:
徐聪
2022-01-04 21:14:33 +08:00
parent e80fa6f0a4
commit b61b396acc

View File

@@ -69,6 +69,7 @@ func (iter *Iterator) Next() (value map[string]interface{}) {
iter.Lock()
defer iter.Unlock()
if len(iter.data) == 0 {
iter.index++
return map[string]interface{}{}
}
if iter.strategy == strategyRandom {