gojq
gojq copied to clipboard
Update iter.Next() values
Would it be possible to do something like:
for {
v, ok := iter.Next()
if !ok {
break
}
v = "TEST"
}
And update all values for a .[] query for example?
Append | .[] = "TEST" to the query string?
In my use case v = "TEST" would be the output of some external system.
I can't understand what you want to achieve.