Skip to content
Permalink
Browse files

start linking to pkg.go.dev for Go package documentation

For now, do this only for Go packages hosted on dmitri.shuralyov.com.

Deal with older packages hosted on github.com later. Some of them only
state their license in README and don't have explicit LICENSE files.
Their README files link to godoc.org, which should be updated too.

Updates golang/go#33654.
  • Loading branch information
dmitshur committed Nov 23, 2019
1 parent 601ba28 commit 87442884a63db49c98c071043e27cea65659b43f
Showing with 1 addition and 1 deletion.
  1. +1 −1 package.go
@@ -133,7 +133,7 @@ func (h *packageHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) err
err = vec.RenderHTML(w,
elem.H3("Installation"),
elem.P(elem.Pre("go get -u "+h.Pkg.Spec)),
elem.H3(elem.A("Documentation", attr.Href("https://godoc.org/"+h.Pkg.Spec))),
elem.H3(elem.A("Documentation", attr.Href("https://pkg.go.dev/"+h.Pkg.Spec))),
elem.H3(elem.A("Code", attr.Href("https://gotools.org/"+h.Pkg.Spec))),
elem.H3(elem.A("License", attr.Href(h.Pkg.LicenseURL))),
)

0 comments on commit 8744288

Please sign in to comment.
You can’t perform that action at this time.