-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String format query with no operator using %#v or %#+v panics #56
Comments
The issue is about |
Ah yes sorry wrong method. I was thinking a non-zero |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, was digging around trying to learn more about the gojq query AST type and noticed panics for some queries when I tried to print them using
log.Printf("var: %#+v\n", var)
(thelv
snippet in vscode). The panic happens because the expression has no operator and panics infunc (Operator) String()
.Example:
Would it make sense that queries that parses successfully should be formattable like this? but I understand the panic make sense to have also. Maybe a new operator enum
OpNone
etc?The text was updated successfully, but these errors were encountered: