-
-
Notifications
You must be signed in to change notification settings - Fork 464
Open
Description
I think I found a small issue. The official playground seems to give a different answer than when I use the library in my go code.
Here's my code:
evalResult, err := expr.Eval("type($env['date'])", map[string]interface{}{"date": "2025-11-12T12:12:12Z"})
if err != nil {
panic(err)
}
fmt.Println(evalResult)
It returns a string
as evalResult
go playground
And here's a screenshot from the expr playground where it returns time.Time
for the same expression:
I thought they should both work the same way. Is this a bug or did I miss something?
Metadata
Metadata
Assignees
Labels
No labels