xgo/stdlib/builtin_modules.go
2019-12-20 11:40:38 -08:00

18 lines
377 B
Go

package stdlib
import (
"github.com/d5/tengo"
)
// 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,
}