type net/http.Dir
7 uses
net/http (current package)
fs.go#L43: type Dir string
fs.go#L71: func (d Dir) Open(name string) (File, error) {
fs.go#L725: serveFile(w, r, Dir(dir), file, false)
golang.org/x/pkgsite/internal/frontend
server.go#L134: handle("/third_party/", http.StripPrefix("/third_party", http.FileServer(http.Dir(s.thirdPartyPath))))
server.go#L136: http.ServeFile(w, r, fmt.Sprintf("%s/img/favicon.ico", http.Dir(s.staticPath.String())))
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. |