]> Cypherpunks.ru repositories - gostls13.git/commitdiff
go1.21.html: describe testing/slogtest package
authorJonathan Amsterdam <jba@google.com>
Fri, 26 May 2023 15:32:40 +0000 (11:32 -0400)
committerJonathan Amsterdam <jba@google.com>
Wed, 31 May 2023 21:29:18 +0000 (21:29 +0000)
Change-Id: I734aae67d410073056388852cd94776c7483b4b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/498273
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
TryBot-Bypass: Jonathan Amsterdam <jba@google.com>

doc/go1.21.html

index 97ee457a32a575df59c05f9c91fb9d59b547d8be..0f13f04b6ff7f17c6a8b0672201bba8fbcb9f666 100644 (file)
@@ -318,6 +318,13 @@ Do not send CLs removing the interior tags from such phrases.
   The package supports integration with popular log analysis tools and services.
 </p>
 
+<h3 id="slogtest">New testing/slogtest package</h3>
+
+<p><!-- CL 487895 -->
+  The new <a href="/pkg/testing/slogtest">testing/slogtest</a> package can help
+  to validate <a href="/pkg/log/slog#Handler">slog.Handler<a/> implementations.
+</p>
+
 <h3 id="slices">New slices package</h3>
 
 <p><!-- https://go.dev/issue/45955, https://go.dev/issue/54768, https://go.dev/issue/57348, https://go.dev/issue/57433, CL 467417, CL 483175 -->
@@ -987,14 +994,6 @@ Do not send CLs removing the interior tags from such phrases.
   </dd>
 </dl><!-- testing/fstest -->
 
-<dl id="testing/slogtest"><dt><a href="/pkg/testing/slogtest/">testing/slogtest</a></dt>
-  <dd>
-    <p><!-- CL 487895 -->
-      TODO: <a href="https://go.dev/cl/487895">https://go.dev/cl/487895</a>: testing/slogtest: tests for slog handlers; modified api/next/56345.txt
-    </p>
-  </dd>
-</dl><!-- testing/slogtest -->
-
 <dl id="unicode"><dt><a href="/pkg/unicode/">unicode</a></dt>
   <dd>
     <p><!-- CL 456837 -->