commit | fa2d646637eea17acabd49d8f23882b3bb1849e5 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Fri Apr 22 16:59:48 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Mon Apr 25 15:27:55 2022 +0000 |
tree | df9ecd9120e1dfb0aa70b0b7c2c61365ef4e6f98 | |
parent | 0c18560bf7bd9e7f9a9fc3c939887724dd7b5e7b [diff] |
internal/godoc/internal/doc: support examples on generic methods Remove bracket contents from generic method example identifiers to allow them to be paired with examples. Port of https://go.dev/cl/401761. Fixes golang/go#52363. Change-Id: I4404c833d1aa98308407cdc6199fbe6261f256c9 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/401621 Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
Pkgsite requires Go 1.18 to run. The last commit that works with older versions of Go is 4d836c6a652cde92f433967680dfd6171a91ec12.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see pkg.go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.