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
why when I write code like this:
u := User{FirstName: "go", LastName: "jack", Age: 18} parameters := make(map[string]interface{}) parameters["u"] = u expr, _ := govaluate.NewEvaluableExpression("u.FullName()") result, _ := expr.Evaluate(parameters) fmt.Println("user", result)
it will report error runtime error: invalid memory address or nil pointer dereference
The accessor character . is recognized as float ?
The text was updated successfully, but these errors were encountered:
fixed in master but not release, we can try this go get -u github.com/Knetic/govaluate@master
go get -u github.com/Knetic/govaluate@master
require ( github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible )
Sorry, something went wrong.
@WideLee thanks for the fix!
@WideLee i don't see any commit in master since last 7 years :-)
No branches or pull requests
why when I write code like this:
u := User{FirstName: "go", LastName: "jack", Age: 18}
parameters := make(map[string]interface{})
parameters["u"] = u
expr, _ := govaluate.NewEvaluableExpression("u.FullName()")
result, _ := expr.Evaluate(parameters)
fmt.Println("user", result)
it will report error runtime error: invalid memory address or nil pointer dereference
The accessor character . is recognized as float ?
The text was updated successfully, but these errors were encountered: