25 lines
357 B
Go
25 lines
357 B
Go
package cjson
|
|
|
|
import "github.com/d5/tengo/v2"
|
|
import "io"
|
|
import "encoding/json"
|
|
//import "github.com/d5/tengo/v2/stdlib"
|
|
|
|
const (
|
|
StrStdin = "<stdin>"
|
|
)
|
|
|
|
var Module = map[string]tengo.Object{
|
|
"new_decoder": &tengo.BuiltinFunction{
|
|
Name: "new_decoder",
|
|
Value: NewDecoder,
|
|
},
|
|
|
|
}
|
|
|
|
type Encoder struct {
|
|
enc *json.Encoder
|
|
output io.Writer
|
|
}
|
|
|
|
//func
|