<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-25 17:27:47 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-25 17:27:47 +0100
commit11bfa042040803061fa8cf04ab00d0e815ebafad (patch)
tree445484e47c71128d1398170b06d214409c09560a /main
parent96a10b92057319b2c30782ea19f5427a333e6bc3 (diff)
downloadstred-go-11bfa042040803061fa8cf04ab00d0e815ebafad.tar
Completely rewrites the JSON parser to make more extensive use of slices and decrease the number mallocs
Diffstat (limited to 'main')
-rw-r--r--main/command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/command.go b/main/command.go
index 0db545b..9403020 100644
--- a/main/command.go
+++ b/main/command.go
@@ -44,7 +44,7 @@ func (cmd AppendNextCommand) exec(state *ProgramState) {
if err != nil {
panic("Missing next value")
}
- state.value = append(state.value, nextItem.Value...)
+ state.value = walk.ConcatData(state.value, nextItem.Value)
state.path = nextItem.Path
}