package sjson import "github.com/d5/tengo/v2" import "io" import "encoding/json" //import "github.com/d5/tengo/v2/stdlib" const ( StrStdin = "" ) var Module = map[string]tengo.Object{ "__check": &tengo.BuiltinFunction{ Name: "__check", Value: func( args ...tengo.Object, ) (tengo.Object, error) { return tengo.FromInterface("Hello, Check!") }, }, "new_decoder": &tengo.BuiltinFunction{ Name: "new_decoder", Value: NewDecoder, }, } type Encoder struct { enc *json.Encoder output io.Writer } //func