Skip to content

Commit 6a08270

Browse files
authored
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.
1 parent 26a09c4 commit 6a08270

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ var indexTmpl = template.Must(template.New("index").Parse(`<!DOCTYPE html>
152152
<html>
153153
<h1>{{.Host}}</h1>
154154
<ul>
155-
{{range .Handlers}}<li><a href="https://godoc.org/{{.}}">{{.}}</a></li>{{end}}
155+
{{range .Handlers}}<li><a href="https://pkg.go.dev/{{.}}">{{.}}</a></li>{{end}}
156156
</ul>
157157
</html>
158158
`))
@@ -163,10 +163,10 @@ var vanityTmpl = template.Must(template.New("vanity").Parse(`<!DOCTYPE html>
163163
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
164164
<meta name="go-import" content="{{.Import}} {{.VCS}} {{.Repo}}">
165165
<meta name="go-source" content="{{.Import}} {{.Display}}">
166-
<meta http-equiv="refresh" content="0; url=https://godoc.org/{{.Import}}/{{.Subpath}}">
166+
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/{{.Import}}/{{.Subpath}}">
167167
</head>
168168
<body>
169-
Nothing to see here; <a href="https://godoc.org/{{.Import}}/{{.Subpath}}">see the package on godoc</a>.
169+
Nothing to see here; <a href="https://pkg.go.dev/{{.Import}}/{{.Subpath}}">see the package on pkg.go.dev</a>.
170170
</body>
171171
</html>`))
172172

0 commit comments

Comments
 (0)