aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2025-05-19 15:31:37 -0400
committerMichael Matloob <matloob@golang.org>2025-05-20 13:30:28 -0700
commit1972493904b41a34e35a1f62b18f5d91d84a26bd (patch)
treeaa2674cf5efc9cd929936ce70fb5a46d88022a1a /src/encoding
parent113b25774ed8d1d915ae4e1adf9222865ccb0695 (diff)
downloadgo-1972493904b41a34e35a1f62b18f5d91d84a26bd.tar.xz
cmd/doc: show page for the requested object
This fixes a bug where we start pkgsite for every requested object, rather than the one that we would have printed the documentation for. To make things simple, we'll run the logic that prints the documentation, but with an io.Discard writer. Then we can tell if the documentation was found based on the return values of those functions. For #68106 Change-Id: Ibf2ab1720f381d7214fc9239b9c2e915c91f7f7b Reviewed-on: https://go-review.googlesource.com/c/go/+/674555 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Matloob <matloob@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions