You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An undocumented assumption that user who is trying to traverse gojq.Query should know is that q.Term and q.{Left, Op, Right} are exclusive, and if q.Term is not nil, you shouldn't access the others. And zero value of Operator is not implemented because this will never be printed under this assumption. Even I don't know how to print the zero value of Operator. How do you expect it to be printed? If you still want to debug the Query struct value, use %#v formatter. gojq.Operator implements fmt.GoStringer interface because printing the struct with Go syntax format is sometimes useful for debugging.
I would like to dump jq.Query:
When I run the code, it panics:
I think it should not do that.
The text was updated successfully, but these errors were encountered: