diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2024-03-24 19:18:58 +0000 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2024-03-24 19:18:58 +0000 |
commit | 81dcb87b2158f625ca10a20df5a93a42bbcaf26b (patch) | |
tree | 24d80db1428e5a61d2d96d9c929eaa82b1e40b92 /walk | |
parent | 0e4179fabbd0a66826f1375dae86ca7f681fb29d (diff) | |
download | stred-go-81dcb87b2158f625ca10a20df5a93a42bbcaf26b.tar |
Implements helper function navigateTo in json/write.go
Diffstat (limited to 'walk')
-rw-r--r-- | walk/walk.go | 2 | ||||
-rw-r--r-- | walk/walk_test.go | 6 |
2 files changed, 5 insertions, 3 deletions
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{} |