summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/d5/tengo/v2/stdlib/builtin_modules.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/d5/tengo/v2/stdlib/builtin_modules.go')
-rw-r--r--vendor/github.com/d5/tengo/v2/stdlib/builtin_modules.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/github.com/d5/tengo/v2/stdlib/builtin_modules.go b/vendor/github.com/d5/tengo/v2/stdlib/builtin_modules.go
new file mode 100644
index 00000000..cf0e9621
--- /dev/null
+++ b/vendor/github.com/d5/tengo/v2/stdlib/builtin_modules.go
@@ -0,0 +1,18 @@
+package stdlib
+
+import (
+ "github.com/d5/tengo/v2"
+)
+
+// BuiltinModules are builtin type standard library modules.
+var BuiltinModules = map[string]map[string]tengo.Object{
+ "math": mathModule,
+ "os": osModule,
+ "text": textModule,
+ "times": timesModule,
+ "rand": randModule,
+ "fmt": fmtModule,
+ "json": jsonModule,
+ "base64": base64Module,
+ "hex": hexModule,
+}