xgo/stdlib/builtin_modules.go

19 lines
380 B
Go
Raw Normal View History

package stdlib
2019-12-20 22:40:38 +03:00
import (
2019-12-30 00:38:51 +03:00
"github.com/d5/tengo/v2"
2019-12-20 22:40:38 +03:00
)
// BuiltinModules are builtin type standard library modules.
2019-12-20 22:40:38 +03:00
var BuiltinModules = map[string]map[string]tengo.Object{
"math": mathModule,
"os": osModule,
"text": textModule,
"times": timesModule,
"rand": randModule,
"fmt": fmtModule,
"json": jsonModule,
"base64": base64Module,
2019-12-20 22:40:38 +03:00
"hex": hexModule,
}