handler: use pkg.go.dev instead of golang.org (#33)
golang.org now has a warning to use pkg.go.dev instead. Use the new URL.
This commit is contained in:
parent
26a09c434d
commit
6a082708bf
@ -152,7 +152,7 @@ var indexTmpl = template.Must(template.New("index").Parse(`<!DOCTYPE html>
|
|||||||
<html>
|
<html>
|
||||||
<h1>{{.Host}}</h1>
|
<h1>{{.Host}}</h1>
|
||||||
<ul>
|
<ul>
|
||||||
{{range .Handlers}}<li><a href="https://godoc.org/{{.}}">{{.}}</a></li>{{end}}
|
{{range .Handlers}}<li><a href="https://pkg.go.dev/{{.}}">{{.}}</a></li>{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
</html>
|
</html>
|
||||||
`))
|
`))
|
||||||
@ -163,10 +163,10 @@ var vanityTmpl = template.Must(template.New("vanity").Parse(`<!DOCTYPE html>
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
<meta name="go-import" content="{{.Import}} {{.VCS}} {{.Repo}}">
|
<meta name="go-import" content="{{.Import}} {{.VCS}} {{.Repo}}">
|
||||||
<meta name="go-source" content="{{.Import}} {{.Display}}">
|
<meta name="go-source" content="{{.Import}} {{.Display}}">
|
||||||
<meta http-equiv="refresh" content="0; url=https://godoc.org/{{.Import}}/{{.Subpath}}">
|
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/{{.Import}}/{{.Subpath}}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
Nothing to see here; <a href="https://godoc.org/{{.Import}}/{{.Subpath}}">see the package on godoc</a>.
|
Nothing to see here; <a href="https://pkg.go.dev/{{.Import}}/{{.Subpath}}">see the package on pkg.go.dev</a>.
|
||||||
</body>
|
</body>
|
||||||
</html>`))
|
</html>`))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user