doc/go1.21: document new bytes.Buffer methods

For #53685

Change-Id: I237297d19afeb36ad738074d0c61caa7012f65ac
Reviewed-on: https://go-review.googlesource.com/c/go/+/499617
Reviewed-by: Eli Bendersky <eliben@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Bypass: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Ian Lance Taylor 2023-05-31 11:47:14 -07:00 committed by Gopher Robot
parent 481665ec07
commit 3cea9e6881
1 changed files with 8 additions and 6 deletions

View File

@ -333,12 +333,14 @@ Do not send CLs removing the interior tags from such phrases.
<dl id="bytes"><dt><a href="/pkg/bytes/">bytes</a></dt>
<dd>
<p><!-- https://go.dev/issue/53685 -->
TODO: <a href="https://go.dev/issue/53685">https://go.dev/issue/53685</a>: add Buffer.Available and Buffer.AvailableBuffer
</p>
<p><!-- CL 474635 -->
TODO: <a href="https://go.dev/cl/474635">https://go.dev/cl/474635</a>: bytes: add Buffer.Available and Buffer.AvailableBuffer; modified api/next/53685.txt
<p><!-- https://go.dev/issue/53685, CL 474635 -->
The <a href="/pkg/bytes/#Buffer"><code>Buffer</code></a> type
has two new methods:
<a href="/pkg/bytes/#Buffer.Available"><code>Available</code></a>
and <a href="/pkg/bytes/#AvailableBuffer"><code>AvailableBuffer</code></a>.
These may be used along with the
<a href="/pkg/bytes/#Buffer.Write"><code>Write</code></a>
method to append directly to the <code>Buffer</code>.
</p>
</dd>
</dl><!-- bytes -->