2019-04-06 20:18:25 +00:00
|
|
|
package stdlib
|
|
|
|
|
|
|
|
import "github.com/d5/tengo/objects"
|
|
|
|
|
|
|
|
// BuiltinModules are builtin type standard library modules.
|
|
|
|
var BuiltinModules = map[string]map[string]objects.Object{
|
|
|
|
"math": mathModule,
|
|
|
|
"os": osModule,
|
|
|
|
"text": textModule,
|
|
|
|
"times": timesModule,
|
|
|
|
"rand": randModule,
|
|
|
|
"fmt": fmtModule,
|
|
|
|
"json": jsonModule,
|
2019-10-26 23:45:57 +00:00
|
|
|
"base64": base64Module,
|
|
|
|
"hex": hexModule,
|
2019-04-06 20:18:25 +00:00
|
|
|
}
|