go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

commit aa0c2a283fe296fe903bc94161d47ba3858e5284
parent 68fef90684b9aef9168be7ddf1760f895de8ee92
Author: lash <dev@holbrook.no>
Date:   Wed, 12 Apr 2023 07:29:23 +0100

Handle browse input

Diffstat:
Mgo/engine/engine.go | 1-
Mgo/testdata/testdata.go | 2++
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/go/engine/engine.go b/go/engine/engine.go @@ -119,7 +119,6 @@ func (en *Engine) Exec(input []byte, ctx context.Context) (bool, error) { // - the template for the given node point is note available for retrieval using the resource.Resource implementer. // - the supplied writer fails to process the writes. func(en *Engine) WriteResult(w io.Writer) error { - //location, idx := en.st.Where() r, err := en.vm.Render() if err != nil { return err diff --git a/go/testdata/testdata.go b/go/testdata/testdata.go @@ -117,6 +117,8 @@ func long() error { b = vm.NewLine(b, vm.MAP, []string{"longdata"}, nil, nil) b = vm.NewLine(b, vm.HALT, nil, nil, nil) b = vm.NewLine(b, vm.INCMP, []string{"0", "_"}, nil, nil) + b = vm.NewLine(b, vm.INCMP, []string{"00", ">"}, nil, nil) + b = vm.NewLine(b, vm.INCMP, []string{"11", "<"}, nil, nil) tpl := `data {{.longdata}}`