refactor rule evaluator to make use of expr envs

This commit is contained in:
Héctor Giménez
2024-05-06 10:15:37 +09:00
parent 8315e55594
commit ffac5edff5
5 changed files with 170 additions and 114 deletions

4
go.mod
View File

@@ -6,7 +6,7 @@ require (
github.com/expr-lang/expr v1.16.5
github.com/faiface/beep v1.1.0
github.com/stretchr/testify v1.9.0
golang.org/x/sys v0.18.0
golang.org/x/sys v0.20.0
)
require (
@@ -15,7 +15,7 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8 // indirect
golang.org/x/image v0.15.0 // indirect
golang.org/x/image v0.16.0 // indirect
golang.org/x/mobile v0.0.0-20190415191353-3e0bab5405d6 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)