1
0
mirror of https://github.com/golang/go synced 2024-11-19 14:34:42 -07:00
go/src/mime
Brad Fitzpatrick 48db2c01b4 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>
2018-03-26 23:05:53 +00:00
..
multipart mime/multipart: test for presence of filename instead of content-type 2018-03-10 00:33:10 +00:00
quotedprintable mime/quotedprintable: accept = not followed by 2 hex digits as literal equals 2016-10-28 16:08:06 +00:00
testdata
encodedword_test.go mime: re-accept empty encoded-text 2017-04-29 04:14:36 +00:00
encodedword.go all: use strings.Builder instead of bytes.Buffer where appropriate 2018-03-26 23:05:53 +00:00
example_test.go
grammar.go
mediatype_test.go mime: ignore key on ParseMediaType when value don't pass RFC 2231 check 2017-08-29 21:10:56 +00:00
mediatype.go all: use strings.Builder instead of bytes.Buffer where appropriate 2018-03-26 23:05:53 +00:00
type_dragonfly.go
type_freebsd.go
type_openbsd.go
type_plan9.go
type_test.go mime: add benchmarks for TypeByExtension and ExtensionsByType 2017-02-14 23:02:07 +00:00
type_unix.go mime: tighten up and simplify tests 2015-03-30 09:12:03 +00:00
type_windows.go
type.go mime: use sync.Map instead of RWMutex for type lookups 2017-04-28 20:49:29 +00:00