func net/http.FileServer
5 uses
net/http (current package)
fs.go#L838: func FileServer(root FileSystem) Handler {
go.opencensus.io/zpages
zpages.go#L60: mux.Handle(path.Join(pathPrefix, "public/"), http.FileServer(fs))
golang.org/x/pkgsite/internal/frontend
server.go#L134: handle("/third_party/", http.StripPrefix("/third_party", http.FileServer(http.Dir(s.thirdPartyPath))))
server.go#L613: return http.StripPrefix("/static/", http.FileServer(http.Dir(staticPath)))
golang.org/x/pkgsite/internal/worker
server.go#L211: handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir(s.staticPath.String()))))
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |