2019-03-18 18:15:26 +03:00
|
|
|
package stdlib
|
|
|
|
|
2019-12-20 22:40:38 +03:00
|
|
|
import (
|
|
|
|
"github.com/d5/tengo"
|
|
|
|
)
|
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
|
|
|
}
|