diff --git a/cmd/godoc/blog.go b/cmd/godoc/blog.go index e47b73eb09..42abeb6911 100644 --- a/cmd/godoc/blog.go +++ b/cmd/godoc/blog.go @@ -21,7 +21,7 @@ import ( const ( blogRepo = "golang.org/x/blog" - blogURL = "http://blog.golang.org/" + blogURL = "https://blog.golang.org/" blogPath = "/blog/" ) @@ -42,10 +42,11 @@ func init() { } func blogInit(host string) { - // Binary distributions will include the blog content in "/blog". + // Binary distributions included the blog content in "/blog". + // We stopped including this in Go 1.11. root := filepath.Join(runtime.GOROOT(), "blog") - // Prefer content from go.blog repository if present. + // Prefer content from the golang.org/x/blog repository if present. if pkg, err := build.Import(blogRepo, "", build.FindOnly); err == nil { root = pkg.Dir }