diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-25 17:27:47 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-25 17:27:47 +0100 |
commit | 11bfa042040803061fa8cf04ab00d0e815ebafad (patch) | |
tree | 445484e47c71128d1398170b06d214409c09560a /main/command.go | |
parent | 96a10b92057319b2c30782ea19f5427a333e6bc3 (diff) | |
download | stred-go-11bfa042040803061fa8cf04ab00d0e815ebafad.tar |
Completely rewrites the JSON parser to make more extensive use of slices and decrease the number mallocs
Diffstat (limited to 'main/command.go')
-rw-r--r-- | main/command.go | 2 |
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 } |