strings: please add UnwriteByte
to Builder
#36038
Labels
FeatureRequest
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version 1.13.
There does not seem to be a way to remove data written to a
strings.Builder
.I'm currently doing the following:
The last line removes the trailing slash from the accumulated buffer. I don't see an obvious way of doing the same with a
strings.Builder
. Perhaps it would be a good idea to addUnwriteByte
,UnwriteRune
and perhapsUnwriteString
functions tostrings.Builder
?The text was updated successfully, but these errors were encountered: