simple-var-store.go and simple-func-store.go merged in a single file named simple-store.go

This commit is contained in:
2024-05-23 07:46:31 +02:00
parent 1ff5770264
commit e4275e2cb6
10 changed files with 311 additions and 8 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func EvalStringA(source string, args ...Arg) (result any, err error) {
}
func EvalStringV(source string, args []Arg) (result any, err error) {
ctx := NewSimpleFuncStore()
ctx := NewSimpleStore()
for _, arg := range args {
if isFunc(arg.Value) {
if f, ok := arg.Value.(FuncTemplate); ok {