GetMany searches json for the multiple paths. The return value is a Result array where the number of items will be equal to the number of input paths.
(json string, path ...string)
| 2452 | // The return value is a Result array where the number of items |
| 2453 | // will be equal to the number of input paths. |
| 2454 | func GetMany(json string, path ...string) []Result { |
| 2455 | res := make([]Result, len(path)) |
| 2456 | for i, path := range path { |
| 2457 | res[i] = Get(json, path) |
| 2458 | } |
| 2459 | return res |
| 2460 | } |
| 2461 | |
| 2462 | // GetManyBytes searches json for the multiple paths. |
| 2463 | // The return value is a Result array where the number of items |
searching dependent graphs…