Skip to content

Issue when using "<=" operator #5

@jorge-barroso

Description

@jorge-barroso

When doing "goexpression.Eval(expression, context)"

With expression == "A <= C"
And context a map[string]interface{} with values:

  • "A" -> 180 (float64)
  • "C" -> 25000 (float64)

I'm getting an error parsing the expression, parse.err has the following string value:
Line: 1, near "= C", Error: Unexpected token.

The error is happening around parse.parse() in here (parse.go):
image

This is happening on MacOS and Linux with Docker, using go modules with go 1.17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions