From 7e7858473f8e9ff87873cd445a7403181346f6db Mon Sep 17 00:00:00 2001 From: Julie Qiu Date: Fri, 26 Feb 2021 13:16:21 -0500 Subject: internal: do not display README at /std The README is no longer displayed at pkg.go.dev/std. It is also no longer stored in the database when a std module is fetched. For golang/go#44356 Change-Id: I6b1605389bc3c97694b6ec2b06e28006a38be999 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/296950 Trust: Julie Qiu Reviewed-by: Jonathan Amsterdam --- internal/testing/sample/sample.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/testing/sample/sample.go') diff --git a/internal/testing/sample/sample.go b/internal/testing/sample/sample.go index cf11748f..c9f3eb6f 100644 --- a/internal/testing/sample/sample.go +++ b/internal/testing/sample/sample.go @@ -175,6 +175,9 @@ func Module(modulePath, version string, suffixes ...string) *internal.Module { m.Units[0].Name = u.Name } } + if modulePath == stdlib.ModulePath { + m.Units[0].Readme = nil + } // Fill in license contents. for _, u := range m.Units { u.LicenseContents = m.Licenses -- cgit v1.3