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
+2 -2
View File
@@ -6,7 +6,7 @@ package expr
import "path/filepath"
var globalCtx *SimpleFuncStore
var globalCtx *SimpleStore
func ImportInContext(name string) (exists bool) {
var mod *module
@@ -50,6 +50,6 @@ func GetFuncInfo(ctx ExprContext, name string) (item ExprFunc, exists bool, owne
}
func init() {
globalCtx = NewSimpleFuncStore()
globalCtx = NewSimpleStore()
ImportBuiltinsFuncs(globalCtx)
}