Values iterates over a json result. This works identically to ForEach, but allows modern Go loops: for value := range res.Values() { fmt.Printf("%s\n", value) }
()
| 3642 | // fmt.Printf("%s\n", value) |
| 3643 | // } |
| 3644 | func (t Result) Values() iter.Seq[Result] { |
| 3645 | return func(yield func(Result) bool) { |
| 3646 | t.ForEach(func(_, value Result) bool { |
| 3647 | return yield(value) |
| 3648 | }) |
| 3649 | } |
| 3650 | } |