]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add release note for go/types/PkgNameOf
authorRobert Griesemer <gri@golang.org>
Mon, 4 Dec 2023 20:35:35 +0000 (12:35 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 5 Dec 2023 22:43:13 +0000 (22:43 +0000)
For #62037.

Change-Id: Id1d02f88205e5ea62662e78c8313731ec9e55b1e
Reviewed-on: https://go-review.googlesource.com/c/go/+/546975
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Bypass: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>

doc/go1.22.html

index c1535cc275aaf1095d2f51a2116ea0ee284d8eb5..7642ff5bfd78ed8b30c38503c978a2099d02aca4 100644 (file)
@@ -508,8 +508,9 @@ Do not send CLs removing the interior tags from such phrases.
 
 <dl id="go/types"><dt><a href="/pkg/go/types/">go/types</a></dt>
   <dd>
-    <p><!-- https://go.dev/issue/62037 -->
-      TODO: <a href="https://go.dev/issue/62037">https://go.dev/issue/62037</a>: add Info.PkgName method
+    <p><!-- https://go.dev/issue/62037, CL 541575 -->
+      The new helper method <a href="/pkg/go/types#Info.PkgNameOf"><code>PkgNameOf</code></a> returns the local package name
+      for the given import declaration.
     </p>
 
     <p><!-- https://go.dev/issue/63223 -->
@@ -523,10 +524,6 @@ Do not send CLs removing the interior tags from such phrases.
       <code>types.SizesFor("gc", "amd64")</code>.
     </p>
 
-    <p><!-- CL 541575 -->
-      TODO: <a href="https://go.dev/cl/541575">https://go.dev/cl/541575</a>: go/types, types2: implement Info.PkgNameOf; modified api/next/62037.txt
-    </p>
-
     <p><!-- CL 541737 -->
       TODO: <a href="https://go.dev/cl/541737">https://go.dev/cl/541737</a>: go/types, types2: implement Alias proposal (export API); modified api/next/63223.txt
     </p>