mirror of
https://github.com/golang/go
synced 2024-11-18 20:44:45 -07:00
668041ef66
These are straightforward variants of the existing Sprintf etc., but append the resulting bytes to a provided buffer rather than returning a string. Internally, there is potentially some allocation because the package uses a pool of buffers to build its output. We make no attempt to override that, so the result is first printed into the pool and then copied to the output. Since it is a managed pool, asymptotically there should be no extra allocation. Fixes #47579 RELNOTE=yes Change-Id: Icef797f9b6f0c84d03e7035d95c06cdb819e2649 Reviewed-on: https://go-review.googlesource.com/c/go/+/406177 Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
4 lines
194 B
Plaintext
4 lines
194 B
Plaintext
pkg fmt, func Append([]uint8, ...interface{}) []uint8 #47579
|
|
pkg fmt, func Appendf([]uint8, string, ...interface{}) []uint8 #47579
|
|
pkg fmt, func Appendln([]uint8, ...interface{}) []uint8 #47579
|