]> Cypherpunks repositories - gostls13.git/commit
all: use strings.Builder instead of bytes.Buffer where appropriate
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 26 Mar 2018 06:56:39 +0000 (06:56 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 26 Mar 2018 23:05:53 +0000 (23:05 +0000)
commit48db2c01b42d959f2d8fa0c24d853bdb6100cf8a
treec80a885e1971c4114d33c25e905def159be7f73c
parentf0eca373beb94763b71dadcf6504a95a3797dcbb
all: use strings.Builder instead of bytes.Buffer where appropriate

I grepped for "bytes.Buffer" and "buf.String" and mostly ignored test
files. I skipped a few on purpose and probably missed a few others,
but otherwise I think this should be most of them.

Updates #18990

Change-Id: I5a6ae4296b87b416d8da02d7bfaf981d8cc14774
Reviewed-on: https://go-review.googlesource.com/102479
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
16 files changed:
src/archive/tar/writer.go
src/cmd/cover/html.go
src/expvar/expvar.go
src/go/types/methodset.go
src/mime/encodedword.go
src/mime/mediatype.go
src/net/http/cookie.go
src/net/http/httptest/server.go
src/net/mail/message.go
src/net/url/url.go
src/regexp/onepass.go
src/regexp/syntax/parse_test.go
src/regexp/syntax/prog.go
src/regexp/syntax/regexp.go
src/testing/example.go
src/testing/testing.go