go-vise

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

commit fea12dfc44f684882b17617f53fbb523f4662bc4
parent 8a54d65719b9a4a39f0d470d4e8c16fd3a031637
Author: lash <dev@holbrook.no>
Date:   Fri, 20 Dec 2024 11:17:20 +0000

Reverse array in output debug traversal

Diffstat:
Mdebug/map.go | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debug/map.go b/debug/map.go @@ -70,5 +70,11 @@ func(nm *NodeMap) processNode(ctx context.Context, node *Node, rs resource.Resou } func (nm *NodeMap) String() string { - return strings.Join(nm.outs, "\n") + var s string + l := len(nm.outs) + for i := l; i > 0; i-- { + s += nm.outs[i-1] + s += "\n" + } + return s }