still prospecting
This commit is contained in:
+3
-3
@@ -180,12 +180,12 @@ func FiltersFromFlatMap(flatMap map[string]interface{}, target interface{}) *Fil
|
||||
}
|
||||
for jsonKey, val := range m {
|
||||
bsonKey := resolve(jsonKey)
|
||||
items, ok := val.([]interface{})
|
||||
fmt.Println(jsonKey, val, ok, bsonKey)
|
||||
//items, ok := val.([]interface{})
|
||||
fmt.Println(jsonKey, val, bsonKey)
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
for _, item := range items {
|
||||
for _, item := range val.([]interface{}) {
|
||||
entry, ok := item.(map[string]interface{})
|
||||
if !ok {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user