From 81dcb87b2158f625ca10a20df5a93a42bbcaf26b Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Sun, 24 Mar 2024 19:18:58 +0000 Subject: Implements helper function navigateTo in json/write.go --- walk/walk.go | 2 ++ walk/walk_test.go | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'walk') diff --git a/walk/walk.go b/walk/walk.go index 289d9ee..fc9e9de 100644 --- a/walk/walk.go +++ b/walk/walk.go @@ -5,6 +5,8 @@ import ( "strings" ) +type PathSegment interface {} + type Value interface { value() Debug() string diff --git a/walk/walk_test.go b/walk/walk_test.go index c05da02..759c501 100644 --- a/walk/walk_test.go +++ b/walk/walk_test.go @@ -7,9 +7,9 @@ import ( func TestValueIter(t *testing.T) { values := ValueList{ - NumberScalar(1), - NumberScalar(2), - NumberScalar(3), + NumberValue(1), + NumberValue(2), + NumberValue(3), } valuesCopy := ValueList{} -- cgit v1.2.3