Added a CSV module
This commit is contained in:
parent
ca95ac7008
commit
f119683b57
8 changed files with 221 additions and 60 deletions
|
|
@ -25,9 +25,11 @@ func initJS(ctx context.Context) {
|
|||
replInst := repl.New(
|
||||
ucl.WithModule(builtins.Log(nil)),
|
||||
ucl.WithModule(builtins.Strs()),
|
||||
ucl.WithModule(builtins.Time()),
|
||||
ucl.WithOut(ucl.LineHandler(func(line string) {
|
||||
invokeUCLCallback("onOutLine", line)
|
||||
})))
|
||||
})),
|
||||
)
|
||||
|
||||
uclObj["eval"] = js.FuncOf(func(this js.Value, args []js.Value) any {
|
||||
if len(args) != 2 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue