Skip to content

Commit 49f022c

Browse files
griesemergopherbot
authored andcommitted
doc: add release note for go/types/PkgNameOf
For #62037. Change-Id: Id1d02f88205e5ea62662e78c8313731ec9e55b1e Reviewed-on: https://go-review.googlesource.com/c/go/+/546975 Reviewed-by: Alan Donovan <[email protected]> TryBot-Bypass: Robert Griesemer <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Auto-Submit: Robert Griesemer <[email protected]>
1 parent ba51901 commit 49f022c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

doc/go1.22.html

+3-6
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,9 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
508508

509509
<dl id="go/types"><dt><a href="/pkg/go/types/">go/types</a></dt>
510510
<dd>
511-
<p><!-- https://go.dev/issue/62037 -->
512-
TODO: <a href="https://go.dev/issue/62037">https://go.dev/issue/62037</a>: add Info.PkgName method
511+
<p><!-- https://go.dev/issue/62037, CL 541575 -->
512+
The new helper method <a href="/pkg/go/types#Info.PkgNameOf"><code>PkgNameOf</code></a> returns the local package name
513+
for the given import declaration.
513514
</p>
514515

515516
<p><!-- https://go.dev/issue/63223 -->
@@ -523,10 +524,6 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
523524
<code>types.SizesFor("gc", "amd64")</code>.
524525
</p>
525526

526-
<p><!-- CL 541575 -->
527-
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
528-
</p>
529-
530527
<p><!-- CL 541737 -->
531528
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
532529
</p>

0 commit comments

Comments
 (0)