1
0
mirror of https://github.com/golang/go synced 2024-11-21 12:54:45 -07:00

godoc: serve robots.txt raw

R=gri, niemeyer, rsc, r2, r
CC=golang-dev
https://golang.org/cl/4188063
This commit is contained in:
Andrew Gerrand 2011-02-19 05:46:20 +11:00
parent 3173821a8c
commit 06a923ada0
2 changed files with 3 additions and 0 deletions

2
robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /

View File

@ -91,6 +91,7 @@ func registerPublicHandlers(mux *http.ServeMux) {
mux.Handle(pkgHandler.pattern, &pkgHandler) mux.Handle(pkgHandler.pattern, &pkgHandler)
mux.HandleFunc("/doc/codewalk/", codewalk) mux.HandleFunc("/doc/codewalk/", codewalk)
mux.HandleFunc("/search", search) mux.HandleFunc("/search", search)
mux.Handle("/robots.txt", fileServer)
mux.HandleFunc("/", serveFile) mux.HandleFunc("/", serveFile)
} }