From 0f75a9ecdf3f320a22e52d9493b879c4a6ddc536 Mon Sep 17 00:00:00 2001 From: Jeremy Faller Date: Fri, 19 Nov 2021 13:56:24 -0500 Subject: [PATCH] [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 --- doc/go1.18.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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.

-- 2.50.0