[website] internal/pkgdoc: handle IndexListExpr

1 view
Skip to first unread message

Hyang-Ah Hana Kim (Gerrit)

unread,
Jul 16, 2026, 8:55:11 PM (20 hours ago) Jul 16
to Hyang-Ah Hana Kim, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, David Chase, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com

Hyang-Ah Hana Kim submitted the change

Change information

Commit message:
internal/pkgdoc: handle IndexListExpr

This fixes the panic occuring when the documentation generator
(pkgdoc) processes methods defined on generic types with multiple
type parameters (e.g., func (T[A, B]) M() {}).

The pkg.go.dev (pkgsite) is the default documentation serer and
go.dev/pkg/... are redirected to pkg.go.dev/....
However, the pkgdoc package is still used in certain cases:

- golang.google.cn serves package documentation directly using pkgdoc.
- when explicitly requested via `?m=old` (https://go.dev/pkg/fmt/?m=old)
- local development

Fixes golang/go#80430
Change-Id: I4d12c7d20ca74da4f95eb40dbb4f5e964373eeef
Reviewed-by: David Chase <drc...@google.com>
Files:
  • M internal/pkgdoc/doc.go
  • M internal/pkgdoc/doc_test.go
Change size: S
Delta: 2 files changed, 42 insertions(+), 0 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: website
Gerrit-Branch: master
Gerrit-Change-Id: I4d12c7d20ca74da4f95eb40dbb4f5e964373eeef
Gerrit-Change-Number: 801540
Gerrit-PatchSet: 3
Gerrit-Owner: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages