<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/json/read.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2024-03-24 19:18:58 +0000
committerCharlie Stanton <charlie@shtanton.xyz>2024-03-24 19:18:58 +0000
commit81dcb87b2158f625ca10a20df5a93a42bbcaf26b (patch)
tree24d80db1428e5a61d2d96d9c929eaa82b1e40b92 /json/read.go
parent0e4179fabbd0a66826f1375dae86ca7f681fb29d (diff)
downloadstred-go-81dcb87b2158f625ca10a20df5a93a42bbcaf26b.tar
Implements helper function navigateTo in json/write.go
Diffstat (limited to 'json/read.go')
-rw-r--r--json/read.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/json/read.go b/json/read.go
index 8ed7e96..f3a0a65 100644
--- a/json/read.go
+++ b/json/read.go
@@ -42,10 +42,8 @@ func NewJSONReader(reader *bufio.Reader) *JSONReader {
}
}
-type PathSegment interface {}
-
type JSONReader struct {
- path []PathSegment
+ path []walk.PathSegment
structure []JSONReaderStructure
state JSONReaderState
reader *bufio.Reader