aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlan Donovan <adonovan@google.com>2024-01-03 11:21:49 -0500
committerAlan Donovan <adonovan@google.com>2024-01-03 17:21:42 +0000
commitaa0a6ad1db9ea2e338e755720c91e1b10376c4de (patch)
treefdf80a5a286ee514bfef20d430b11775749ec8ad /doc
parentc95fe91d0715dc0a8d55ac80a80f383c3635548b (diff)
downloadgo-aa0a6ad1db9ea2e338e755720c91e1b10376c4de.tar.gz
go-aa0a6ad1db9ea2e338e755720c91e1b10376c4de.zip
doc/go1.22: add links to go/types symbols
Also, join three paragraphs that should have been one. Change-Id: Ib1c252f88a1e98afe157d477caa5323c0c8365e7 Reviewed-on: https://go-review.googlesource.com/c/go/+/553715 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Eli Bendersky <eliben@google.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.22.html15
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/go1.22.html b/doc/go1.22.html
index 96c092f853..44d783e1bd 100644
--- a/doc/go1.22.html
+++ b/doc/go1.22.html
@@ -577,18 +577,17 @@ We plan to include an API migration tool in a future release, likely Go 1.23.
<code>Importer</code>,
<code>Package</code>,
<code>NewPackage</code>.
- </p>
- <p>
- Identifiers cannot be accurately resolved without type information.
+
+ In general, identifiers cannot be accurately resolved without type information.
Consider, for example, the identifier <code>K</code>
in <code>T{K: ""}</code>: it could be the name of a local variable
if T is a map type, or the name of a field if T is a struct type.
- </p>
- <p>
+
New programs should use the <a href='/pkg/go/types'>go/types</a>
- package to resolve identifiers;
- see <code>Object</code>, <code>Info.Uses</code>,
- and <code>Info.Defs</code> for details.
+ package to resolve identifiers; see
+ <a href='https://pkg.go.dev/go/types#Object'><code>Object</code></a>,
+ <a href='https://pkg.go.dev/go/types#Info.Uses'><code>Info.Uses</code></a>, and
+ <a href='https://pkg.go.dev/go/types#Info.Defs'><code>Info.Defs</code></a> for details.
</p>
<p><!-- https://go.dev/issue/60061 -->