builtin_modules.go 380 B

123456789101112131415161718
  1. package stdlib
  2. import (
  3. "github.com/d5/tengo/v2"
  4. )
  5. // BuiltinModules are builtin type standard library modules.
  6. var BuiltinModules = map[string]map[string]tengo.Object{
  7. "math": mathModule,
  8. "os": osModule,
  9. "text": textModule,
  10. "times": timesModule,
  11. "rand": randModule,
  12. "fmt": fmtModule,
  13. "json": jsonModule,
  14. "base64": base64Module,
  15. "hex": hexModule,
  16. }