We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7b1d3e + 52fe1a7 commit 132cbe4Copy full SHA for 132cbe4
selectr.go
@@ -165,13 +165,12 @@ type Selector struct {
165
//
166
// Example usage:
167
168
-// sel := Parse("test[0].foo")
169
-// sel.Resolve(map[string]interface{}{
170
-// "test": []map[string]interface{}{
171
-// {"foo": "bar"}
172
-// }
173
-// })
174
-//
+// sel := Parse("test[0].foo")
+// sel.Resolve(map[string]interface{}{
+// "test": []map[string]interface{}{
+// {"foo": "bar"}
+// }
+// })
175
func (s *Selector) Resolve(v interface{}) (interface{}, error) {
176
curr := s.tree
177
for curr != nil {
0 commit comments