From aa0c2a283fe296fe903bc94161d47ba3858e5284 Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 12 Apr 2023 07:29:23 +0100 Subject: [PATCH] Handle browse input --- go/engine/engine.go | 1 - go/testdata/testdata.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/go/engine/engine.go b/go/engine/engine.go index 8f712c1..24399d4 100644 --- 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 index 6c28f6b..0ae7fdb 100644 --- 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}}`