1
0
mirror of https://github.com/golang/go synced 2024-11-05 15:56:12 -07:00

godoc: forward /pkg/C links to /cmd/cgo.

Fixes golang/go#5651.

R=bradfitz
CC=golang-codereviews
https://golang.org/cl/58660043
This commit is contained in:
Brad Garcia 2014-01-30 07:07:12 -05:00
parent 2ca2bfc172
commit f97ec06d2c

View File

@ -35,6 +35,7 @@ func registerHandlers(pres *godoc.Presentation) {
http.Handle("/doc/play/", pres.FileServer()) http.Handle("/doc/play/", pres.FileServer())
http.Handle("/robots.txt", pres.FileServer()) http.Handle("/robots.txt", pres.FileServer())
http.Handle("/", pres) http.Handle("/", pres)
http.Handle("/pkg/C/", redirect.Handler("/cmd/cgo/"))
redirect.Register(nil) redirect.Register(nil)
} }