Skip to content

Commit

Permalink
Merge pull request #23 from 0xch4z/fix-formatting
Browse files Browse the repository at this point in the history
run gofmt ./...
  • Loading branch information
0xch4z authored Mar 1, 2023
2 parents d7b1d3e + 52fe1a7 commit 132cbe4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions selectr.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,12 @@ type Selector struct {
//
// Example usage:
//
// sel := Parse("test[0].foo")
// sel.Resolve(map[string]interface{}{
// "test": []map[string]interface{}{
// {"foo": "bar"}
// }
// })
//
// sel := Parse("test[0].foo")
// sel.Resolve(map[string]interface{}{
// "test": []map[string]interface{}{
// {"foo": "bar"}
// }
// })
func (s *Selector) Resolve(v interface{}) (interface{}, error) {
curr := s.tree
for curr != nil {
Expand Down

0 comments on commit 132cbe4

Please sign in to comment.