GetManyBytes 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 []byte, path ...string)
| 2463 | // The return value is a Result array where the number of items |
| 2464 | // will be equal to the number of input paths. |
| 2465 | func GetManyBytes(json []byte, path ...string) []Result { |
| 2466 | res := make([]Result, len(path)) |
| 2467 | for i, path := range path { |
| 2468 | res[i] = GetBytes(json, path) |
| 2469 | } |
| 2470 | return res |
| 2471 | } |
| 2472 | |
| 2473 | func validpayload(data []byte, i int) (outi int, ok bool) { |
| 2474 | for ; i < len(data); i++ { |
searching dependent graphs…