From 513e3fb6ba798d023b6384382fbfce838f034e0f Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Fri, 10 Sep 2021 07:56:27 -0400 Subject: [PATCH] cmd/godoc: deprecate and point to cmd/pkgsite Fixes golang/go#49212. Change-Id: I335749bfecc60f582968af601d9fa030f038e2be Reviewed-on: https://go-review.googlesource.com/c/tools/+/349051 Trust: Jonathan Amsterdam Run-TryBot: Jonathan Amsterdam gopls-CI: kokoro TryBot-Result: Go Bot Reviewed-by: Dmitri Shuralyov --- cmd/godoc/doc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/godoc/doc.go b/cmd/godoc/doc.go index b1f45ffb413..14f5c3e625b 100644 --- a/cmd/godoc/doc.go +++ b/cmd/godoc/doc.go @@ -108,5 +108,7 @@ see https://golang.org/pkg/testing/#hdr-Examples for the conventions. See "Godoc: documenting Go code" for how to write good comments for godoc: https://golang.org/doc/articles/godoc_documenting_go_code.html +// Deprecated: godoc cannot select what version of a package is displayed. +// Instead, use golang.org/x/pkgsite/cmd/pkgsite. */ package main // import "golang.org/x/tools/cmd/godoc"