]> Cypherpunks repositories - gostls13.git/commit
slog: eliminate needsQuotingSet
authorJonathan Amsterdam <jba@google.com>
Tue, 21 Mar 2023 22:33:46 +0000 (18:33 -0400)
committerJonathan Amsterdam <jba@google.com>
Wed, 22 Mar 2023 11:15:33 +0000 (11:15 +0000)
commitbd20bf4807fe38b81b5cdf9159b2cd29d9990811
tree4edc168ffec327e02f27eadea3657bc191a3905e
parent9b6231a1ab9d3497816c4f9ebae6815443922dd1
slog: eliminate needsQuotingSet

Delete the set of bytes that need quoting in TextHandler, because it
is almost identical to the set for JSON. Use JSONHandler's safeSet
with a few exceptions.

Updates #56345.

Change-Id: Iff6d309c067affef2e5ecfcebd6e1bb8f00f95b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/478198
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/log/slog/text_handler.go