Documentation ¶
Overview ¶
Package static provides http handlers for serving static files from the embedded filesystem or from a local directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
Dir returns a handler that serves static files from the given local directory. Unlike http.FileServer(http.Dir(path)) it will not serve directory listings.
func Embedded ¶
Embedded is an http handler that serves static files embedded into source of this package.
func EmbeddedFile ¶
EmbeddedFile is an http handler that serves a static file embedded into source of this package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.