Documentation
¶
Overview ¶
Package hashfs provides a hashing enabled `http.FileServerFS` replacement library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileServer ¶
FileServer returns a handler that serves HTTP requests with the contents of the file system rooted at root. It will expect the requests to contain hashed paths. Use http.StripPrefix to wrap and remove any prefixes if necessary.
func MaybePath ¶
MaybePath returns the hashed path of filename. The hash is injected before the extension, or at the end if an extension is not found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.