Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFastFileSystem ¶ added in v0.0.5
func NewFastFileSystem(withOptions ...FastFileSystemOption) (_ http.Handler, err error)
Types ¶
type FastFile ¶ added in v0.1.0
type FastFile struct {
// contains filtered or unexported fields
}
func NewFastFileFromTemplate ¶ added in v0.1.0
func NewFastFileSystemFile ¶ added in v0.0.5
NewFastFileSystemFile serves a single file from memory without logging.
func (*FastFile) HandleError ¶ added in v0.1.0
type FastFileSystemOption ¶ added in v0.0.5
type FastFileSystemOption func(*fastFileSystemOptions) error
func WithDefaultFastFileSystemFallthrough ¶ added in v0.0.10
func WithDefaultFastFileSystemFallthrough() FastFileSystemOption
func WithFastFileSystemFallthrough ¶ added in v0.0.10
func WithFastFileSystemFallthrough(h http.Handler) FastFileSystemOption
func WithFastFileSystemFile ¶ added in v0.0.5
func WithFastFileSystemFile( path string, contents []byte, ) FastFileSystemOption
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.