(json, arg string)
| 3596 | } |
| 3597 | |
| 3598 | func modDig(json, arg string) string { |
| 3599 | all := parseRecursiveDescent(nil, Parse(json), arg) |
| 3600 | var out []byte |
| 3601 | out = append(out, '[') |
| 3602 | for i, res := range all { |
| 3603 | if i > 0 { |
| 3604 | out = append(out, ',') |
| 3605 | } |
| 3606 | out = append(out, res.Raw...) |
| 3607 | } |
| 3608 | out = append(out, ']') |
| 3609 | return string(out) |
| 3610 | } |
| 3611 | |
| 3612 | // All iterates over a json result. |
| 3613 | // This works identically to ForEach, but allows modern Go loops: |
nothing calls this directly
no test coverage detected
searching dependent graphs…