Documentation ¶
Overview ¶
Package staticfs adapts http.FS to [oakmux.Handler] signature.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = &NotFoundError{}
Functions ¶
This section is empty.
Types ¶
type NotFoundError ¶
type NotFoundError struct{}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
func (*NotFoundError) HyperTextStatusCode ¶
func (e *NotFoundError) HyperTextStatusCode() int
type Option ¶
type Option func(*options) error
func WithDirectory ¶
func WithFileSystem ¶
func WithPathTranslators ¶
func WithPathTranslators(ts ...PathTranslator) Option
Click to show internal directories.
Click to hide internal directories.