2019-03-18 18:15:26 +03:00
|
|
|
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
|
|
|
)
|
2019-03-18 18:15:26 +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,
|
2019-08-09 20:36:45 +03:00
|
|
|
"base64": base64Module,
|
2019-12-20 22:40:38 +03:00
|
|
|
"hex": hexModule,
|
2019-03-18 18:15:26 +03:00
|
|
|
}
|