build(deps): bump github.com/tidwall/gjson from 1.18.0 to 1.19.0
Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson) from 1.18.0 to 1.19.0. - [Commits](https://github.com/tidwall/gjson/compare/v1.18.0...v1.19.0) --- updated-dependencies: - dependency-name: github.com/tidwall/gjson dependency-version: 1.19.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
@@ -87,7 +87,7 @@ require (
|
|||||||
github.com/testcontainers/testcontainers-go/modules/opensearch v0.42.0
|
github.com/testcontainers/testcontainers-go/modules/opensearch v0.42.0
|
||||||
github.com/theckman/yacspin v0.13.12
|
github.com/theckman/yacspin v0.13.12
|
||||||
github.com/thejerf/suture/v4 v4.0.6
|
github.com/thejerf/suture/v4 v4.0.6
|
||||||
github.com/tidwall/gjson v1.18.0
|
github.com/tidwall/gjson v1.19.0
|
||||||
github.com/tidwall/sjson v1.2.5
|
github.com/tidwall/sjson v1.2.5
|
||||||
github.com/tus/tusd/v2 v2.9.2
|
github.com/tus/tusd/v2 v2.9.2
|
||||||
github.com/unrolled/secure v1.16.0
|
github.com/unrolled/secure v1.16.0
|
||||||
|
|||||||
@@ -1202,8 +1202,8 @@ github.com/theckman/yacspin v0.13.12/go.mod h1:Rd2+oG2LmQi5f3zC3yeZAOl245z8QOvrH
|
|||||||
github.com/thejerf/suture/v4 v4.0.6 h1:QsuCEsCqb03xF9tPAsWAj8QOAJBgQI1c0VqJNaingg8=
|
github.com/thejerf/suture/v4 v4.0.6 h1:QsuCEsCqb03xF9tPAsWAj8QOAJBgQI1c0VqJNaingg8=
|
||||||
github.com/thejerf/suture/v4 v4.0.6/go.mod h1:gu9Y4dXNUWFrByqRt30Rm9/UZ0wzRSt9AJS6xu/ZGxU=
|
github.com/thejerf/suture/v4 v4.0.6/go.mod h1:gu9Y4dXNUWFrByqRt30Rm9/UZ0wzRSt9AJS6xu/ZGxU=
|
||||||
github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
|
github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
|
||||||
github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY=
|
github.com/tidwall/gjson v1.19.0 h1:xwxm7n691Uf3u5OFjzngavjGTh55KX5q/9w9xHW88JU=
|
||||||
github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
|
github.com/tidwall/gjson v1.19.0/go.mod h1:V37/opeE/JbLUOfH0QTXiNez2l0RUjYUhpT4szFQAfc=
|
||||||
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
|
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
|
||||||
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
|
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
|
||||||
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
|
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ This will print:
|
|||||||
```
|
```
|
||||||
Prichard
|
Prichard
|
||||||
```
|
```
|
||||||
*There's also the [GetMany](#get-multiple-values-at-once) function to get multiple values at once, and [GetBytes](#working-with-bytes) for working with JSON byte slices.*
|
*There's also [GetBytes](#working-with-bytes) for working with JSON byte slices.*
|
||||||
|
|
||||||
## Path Syntax
|
## Path Syntax
|
||||||
|
|
||||||
|
|||||||
+47
@@ -1,7 +1,14 @@
|
|||||||
|
// Copyright 2024 Joshua J Baker. All rights reserved.
|
||||||
|
// Use of this source code is governed by an MIT-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
//
|
||||||
|
// https://github.com/tidwall/gjson
|
||||||
|
|
||||||
// Package gjson provides searching for json strings.
|
// Package gjson provides searching for json strings.
|
||||||
package gjson
|
package gjson
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"iter"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@@ -3601,3 +3608,43 @@ func modDig(json, arg string) string {
|
|||||||
out = append(out, ']')
|
out = append(out, ']')
|
||||||
return string(out)
|
return string(out)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// All iterates over a json result.
|
||||||
|
// This works identically to ForEach, but allows modern Go loops:
|
||||||
|
//
|
||||||
|
// for key, value := range res.All() {
|
||||||
|
// fmt.Printf("%s %s\n", key, value)
|
||||||
|
// }
|
||||||
|
func (t Result) All() iter.Seq2[Result, Result] {
|
||||||
|
return func(yield func(Result, Result) bool) {
|
||||||
|
t.ForEach(yield)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keys iterates over a json result.
|
||||||
|
// This works identically to ForEach, but allows modern Go loops:
|
||||||
|
//
|
||||||
|
// for key := range res.Keys() {
|
||||||
|
// fmt.Printf("%s\n", key)
|
||||||
|
// }
|
||||||
|
func (t Result) Keys() iter.Seq[Result] {
|
||||||
|
return func(yield func(Result) bool) {
|
||||||
|
t.ForEach(func(key, _ Result) bool {
|
||||||
|
return yield(key)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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)
|
||||||
|
// }
|
||||||
|
func (t Result) Values() iter.Seq[Result] {
|
||||||
|
return func(yield func(Result) bool) {
|
||||||
|
t.ForEach(func(_, value Result) bool {
|
||||||
|
return yield(value)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Vendored
+2
-2
@@ -2093,8 +2093,8 @@ github.com/theckman/yacspin
|
|||||||
# github.com/thejerf/suture/v4 v4.0.6
|
# github.com/thejerf/suture/v4 v4.0.6
|
||||||
## explicit; go 1.9
|
## explicit; go 1.9
|
||||||
github.com/thejerf/suture/v4
|
github.com/thejerf/suture/v4
|
||||||
# github.com/tidwall/gjson v1.18.0
|
# github.com/tidwall/gjson v1.19.0
|
||||||
## explicit; go 1.12
|
## explicit; go 1.23
|
||||||
github.com/tidwall/gjson
|
github.com/tidwall/gjson
|
||||||
# github.com/tidwall/match v1.1.1
|
# github.com/tidwall/match v1.1.1
|
||||||
## explicit; go 1.15
|
## explicit; go 1.15
|
||||||
|
|||||||
Reference in New Issue
Block a user