Versions in this module Expand all Collapse all v0 v0.6.0 Oct 29, 2025 Changes in this version + func ServeStaticDir(urlPath, dirPath string, opts ...StaticServFileOption) (core.Handler, core.Handler) + func ServeStaticFile(urlPath, filePath string, opts ...StaticServFileOption) core.Handler + type DirData struct + Name string + type DirTemplateData struct + BaseUrl string + Dirs []DirData + Files []FileData + IndexFileExists bool + Title string + type FileData struct + DirPath string + Name string + Size int64 + type StaticServFileOption func(*StaticSevFileConfig) + func WithContentType(contentType string) StaticServFileOption + func WithIndexFile(indexFile string) StaticServFileOption + func WithPreCache() StaticServFileOption + func WithPreCacheSize(size int64) StaticServFileOption + func WithTitle(title string) StaticServFileOption + func WithoutPreCache() StaticServFileOption + func WithoutPreLoad() StaticServFileOption + type StaticSevFileConfig struct + Title string + func NewStaticServeFileConfig(opts ...StaticServFileOption) *StaticSevFileConfig