]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.13: add release notes for the errors package
authorAndrew <andybons@golang.org>
Mon, 24 Jun 2019 19:28:00 +0000 (15:28 -0400)
committerAndrew Bonventre <andybons@golang.org>
Tue, 25 Jun 2019 15:52:31 +0000 (15:52 +0000)
Also removes remaining TODOs

Change-Id: Id80021b7a64c923c4ebd69fb6e8831a43a76dc72
Reviewed-on: https://go-review.googlesource.com/c/go/+/183625
Reviewed-by: Katie Hockman <katie@golang.org>
doc/go1.13.html

index b5e62570080323b371633ebbf24a421d8d52ad83..ec28e38e974f69f3451e1d3d707e9e1a456af0fc 100644 (file)
@@ -34,10 +34,6 @@ Do not send CLs removing the interior tags from such phrases.
   different ones.
 </p>
 
-<p>
-TODO
-</p>
-
 <h2 id="language">Changes to the language</h2>
 
 <p>
@@ -346,10 +342,6 @@ godoc
 
 <h2 id="library">Core library</h2>
 
-<p>
-TODO generally
-</p>
-
 <h3 id="tls_1_3">TLS 1.3</h3>
 
 <p>
@@ -383,10 +375,6 @@ TODO generally
   in mind.
 </p>
 
-<p>
-TODO
-</p>
-
 <dl id="bytes"><dt><a href="/pkg/bytes/">bytes</a></dt>
   <dd>
     <p>
@@ -454,6 +442,24 @@ TODO
 
 </dl><!-- debug/dwarf -->
 
+<dl id="errors"><dt><a href="/pkg/errors/">errors</a></dt>
+  <dd>
+    <!-- CL 163558 -->
+    <p>
+      The new function <a href="/pkg/errors/#As"><code>As</code></a> finds the first error in a given error’s chain
+      that matches a given target’s type, and if so, sets the target to that error value.
+    </p>
+    <p>
+      The new function <a href="/pkg/errors/#Is"><code>Is</code></a> reports whether a given error value matches an
+      error in another’s chain.
+    </p>
+    <p>
+      The new function <a href="/pkg/errors/#Unwrap"><code>Unwrap</code></a> returns the result of calling
+      <code>Unwrap</code> on a given error, if one exists.
+    </p>
+
+</dl><!-- errors -->
+
 <dl id="html/template"><dt><a href="/pkg/html/template/">html/template</a></dt>
   <dd>
     <p><!-- CL 175218 -->