Skip to content

Commit

Permalink
Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jul 8, 2024
1 parent 5e097f5 commit dae366c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/post/postgres/go-sqljson-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ import (
)

func main() {
// Parse some JSON.
// Parse some JSON.
var value any
err := json.Unmarshal([]byte(`{"a":[1,2,3,4,5]}`), &value)
if err != nil {
log.Fatal(err)
}

// Parse a path expression and execute it on the JSON.
// Parse a path expression and execute it on the JSON.
p := path.MustParse("$.a[*] ? (@ >= $min && @ <= $max)")
res, err := p.Query(
context.Background(),
Expand Down

0 comments on commit dae366c

Please sign in to comment.