Versions in this module Expand all Collapse all v0 v0.4.7 Jul 15, 2026 v0.4.6 Jul 6, 2026 v0.4.5 Jun 27, 2026 v0.4.4 May 29, 2026 v0.4.3 May 21, 2026 v0.4.2 May 16, 2026 v0.4.1 May 13, 2026 v0.4.0 May 11, 2026 v0.1.1 Sep 19, 2025 v0.1.0 Sep 12, 2025 Changes in this version + var BrowserFunc func(w http.ResponseWriter, r *http.Request, opt BrowserOption) error + type BrowserOption struct + BasePath string + BrowseCache string + Folder http.File + UTC bool + type Config struct + BasePath string + Browse bool + BrowseCache string + CacheRegex []*RegexCacheStore + DisableFolderSlashRedirect bool + FilePathRegex []*RegexPathStore + Index bool + IndexName string + Path string + PrefixPath string + SPA bool + SPAEnableFile bool + SPAIndex string + SPAIndexRegex []*RegexPathStore + StripIndexName bool + UTC bool + type Folder struct + func New(cfg *Config) (*Folder, error) + func (f *Folder) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (f *Folder) SetCustomContent(...) + func (f *Folder) SetFs(fs http.FileSystem) + type RegexCacheStore struct + CacheControl string + Regex string + type RegexPathStore struct + Regex string + Replacement string