diff --git a/func-import.go b/func-import.go index c73eb3d..54204b6 100644 --- a/func-import.go +++ b/func-import.go @@ -20,7 +20,7 @@ func importFunc(ctx ExprContext, name string, args []any) (result any, err error return importGeneral(ctx, name, args) } -func includeFunc(ctx ExprContext, name string, args []any) (result any, err error) { +func importAllFunc(ctx ExprContext, name string, args []any) (result any, err error) { enable(ctx, control_export_all) return importGeneral(ctx, name, args) } @@ -138,7 +138,7 @@ func doImport(ctx ExprContext, name string, dirList []string, it Iterator) (resu func ImportImportFuncs(ctx ExprContext) { ctx.RegisterFunc("import", &simpleFunctor{f: importFunc}, 1, -1) - ctx.RegisterFunc("include", &simpleFunctor{f: includeFunc}, 1, -1) + ctx.RegisterFunc("importAll", &simpleFunctor{f: importAllFunc}, 1, -1) } func init() {