Documentation ¶
Overview ¶
Package fileserve enables the serving of a static file or an entire directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an xhttp adapter of a net/http handler that serves the content of a named file or directory. For further information, please refer to https://golang.org/pkg/net/http/#ServeFile
func New ¶
NewServer returns a http request handler in charge of serving the content of a file or directory.
Click to show internal directories.
Click to hide internal directories.