]> Cypherpunks repositories - gostls13.git/commit
strings: add Builder
authorCaleb Spare <cespare@gmail.com>
Tue, 31 Oct 2017 23:51:21 +0000 (16:51 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 6 Nov 2017 18:23:51 +0000 (18:23 +0000)
commit37b056948d058679efa4e87fb6c9b2a2ddfa31a3
treeed78c2085005ec9804ada677512d30633182bc63
parente49d074c3449736d283354957d7e5f55a465e67b
strings: add Builder

This is like a write-only subset of bytes.Buffer with an
allocation-free String method.

Fixes #18990.

Change-Id: Icdf7240f4309a52924dc3af04a39ecd737a210f4
Reviewed-on: https://go-review.googlesource.com/74931
Run-TryBot: Caleb Spare <cespare@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/strings/builder.go [new file with mode: 0644]
src/strings/builder_test.go [new file with mode: 0644]
src/strings/example_test.go