Skip to content

Commit

Permalink
doc: add release notes for the bytes, strings, and time packages
Browse files Browse the repository at this point in the history
Change-Id: Idb5bf2a61bff635e3ebd926bdeacf943578ac874
Reviewed-on: https://go-review.googlesource.com/c/go/+/181681
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Bryan C. Mills <[email protected]>
  • Loading branch information
andybons committed Jun 12, 2019
1 parent 0c2953e commit 65f53da
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions doc/go1.13.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
TODO: <a href="https://golang.org/cl/161760">https://golang.org/cl/161760</a>: hoist error creation out of function
</p>

<p>
The new <a href="/pkg/bytes/#ToValidUTF8"><code>ToValidUTF8</code></a> function returns a
copy of a given byte slice with each run of invalid UTF-8 byte sequences replaced by a given slice.
</p>

</dl><!-- bytes -->

<dl id="context"><dt><a href="/pkg/context/">context</a></dt>
Expand Down Expand Up @@ -313,13 +318,14 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>

</dl><!-- runtime/cgo -->

<dl id="strings, bytes"><dt><a href="/pkg/strings, bytes/">strings, bytes</a></dt>
<dl id="strings"><dt><a href="/pkg/strings">strings</a></dt>
<dd>
<p><!-- CL 142003 -->
TODO: <a href="https://golang.org/cl/142003">https://golang.org/cl/142003</a>: add ToValidUTF8
The new <a href="/pkg/strings/#ToValidUTF8"><code>ToValidUTF8</code></a> function returns a
copy of a given string with each run of invalid UTF-8 byte sequences replaced by a given string.
</p>

</dl><!-- strings, bytes -->
</dl><!-- strings -->

<dl id="sync"><dt><a href="/pkg/sync/">sync</a></dt>
<dd>
Expand Down Expand Up @@ -392,11 +398,15 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<dl id="time"><dt><a href="/pkg/time/">time</a></dt>
<dd>
<p><!-- CL 122876 -->
TODO: <a href="https://golang.org/cl/122876">https://golang.org/cl/122876</a>: add support for day-of-year in Format and Parse
Day-of-year is now supported by <a href="/pkg/time/#time.Format"><code>Format</code></a>
and <a href="/pkg/time/#Parse"><code>Parse</code></a>.
</p>

<p><!-- CL 167387 -->
TODO: <a href="https://golang.org/cl/167387">https://golang.org/cl/167387</a>: add methods to convert duration to microseconds and milliseconds
The new <a href="/pkg/time/#Duration"><code>Duration</code></a> methods
<a href="/pkg/time/#Duration.Microseconds"><code>Microseconds</code></a> and
<a href="/pkg/time/#Duration.Milliseconds"><code>Milliseconds</code></a> return
the duration as an integer count of their respectively named units.
</p>

</dl><!-- time -->
Expand Down

0 comments on commit 65f53da

Please sign in to comment.