aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/decode.go
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2023-02-20 00:42:27 -0800
committerGopher Robot <gobot@golang.org>2023-02-27 17:33:26 +0000
commit2de406bb9e26df19a31b5f6111bb221b60964d48 (patch)
tree024c7be050abfaa8ab8276b9ffac0445b927c9a9 /src/encoding/json/decode.go
parent0b5affb193ed559f2cb646e0324827f261e2e767 (diff)
downloadgo-2de406bb9e26df19a31b5f6111bb221b60964d48.tar.xz
encoding/json: use append for HTMLEscape
Use append for HTMLEscape similar to Indent and Compact. Move it to indent.go alongside Compact, as it shares similar logic. In a future CL, we will modify appendCompact to be written in terms of appendHTMLEscape, but we need to first move the JSON decoder logic out of the main loop of appendCompact. Change-Id: I131c64cd53d5d2b4ca798b37349aeefe17b418c7 Reviewed-on: https://go-review.googlesource.com/c/go/+/471198 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Joseph Tsai <joetsai@digital-static.net> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
Diffstat (limited to 'src/encoding/json/decode.go')
0 files changed, 0 insertions, 0 deletions