From: Jeremy Faller Date: Fri, 19 Nov 2021 18:56:24 +0000 (-0500) Subject: [go] doc: add new bufio functionality X-Git-Tag: go1.18beta1~237 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0f75a9ecdf3f320a22e52d9493b879c4a6ddc536;p=gostls13.git [go] doc: add new bufio functionality cl/345570 cl/345569 Updates: #47694 Change-Id: I170af16d5fc9f022d3d29ed0772cfc3d02b8bbcf Reviewed-on: https://go-review.googlesource.com/c/go/+/365317 Trust: Jeremy Faller Run-TryBot: Jeremy Faller Reviewed-by: Joe Tsai --- diff --git a/doc/go1.18.html b/doc/go1.18.html index 1ad651ffe8..3018ed1b4a 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -236,11 +236,17 @@ proposal.
bufio

- TODO: https://golang.org/cl/345569: add Writer.AvailableBuffer + The new Writer.AvailableBuffer + method returns an empty buffer with a possibly non-empty capacity for use + with append-like APIs. After appending, the buffer can be provided to a + succeeding Write call and possibly avoid any copying.

- TODO: https://golang.org/cl/345570: make Reader.Reset and Writer.Reset work on the zero value + The methods Reader.Reset and + Writer.Reset + now use the default buffer size when called on objects with a + nil buffer.