We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package main import ( "fmt" "github.com/PaesslerAG/gval" ) func main() { vars := map[string]interface{}{"name": true} value, err := gval.Evaluate("true&&name", vars) if err != nil { fmt.Println(err) } fmt.Println(value) value, err = gval.Evaluate("true&& name", vars) if err != nil { fmt.Println(err) } fmt.Println(value) }
runing result:
parsing error: true&&name - 1:8 unknown operator &&n <nil> true
My expected result is the first expression also working fine.
The text was updated successfully, but these errors were encountered:
yes this is because of the operator in this operator should probably be a function in v2
in
Sorry, something went wrong.
My current workaround is replacing "&&" to " && ".
By the way, any plan with v2 ?
Probably a version with generic in and output types next year. Depends on wether it works the way I envision it.
Cool. Thanks for your reply.
No branches or pull requests
runing result:
My expected result is the first expression also working fine.
The text was updated successfully, but these errors were encountered: