Versions in this module Expand all Collapse all v0 v0.0.0 Jan 27, 2024 Changes in this version + var Assets embed.FS + func AfterEpoch(t time.Time) bool + func FileServer(root http.FileSystem) http.Handler + func GetTemplate() (*template.Template, error) + type Crumb struct + Link string + Text string + type DirEntry struct + IsDir bool + Leaf string + ModTime time.Time + Size int64 + URL string + type Directory struct + Breadcrumb []Crumb + DirRemote string + Entries []DirEntry + HTMLTemplate *template.Template + Name string + Order string + Query string + Sort string + Title string + func NewDirectory(dirRemote string, htmlTemplate *template.Template) *Directory + func (d *Directory) AddEntry(remote string, isDir bool) + func (d *Directory) AddHTMLEntry(remote string, isDir bool, size int64, modTime time.Time) + func (d *Directory) ProcessQueryParams(sortParm string, orderParm string) *Directory + func (d *Directory) Serve(w http.ResponseWriter, r *http.Request) + func (d *Directory) SetQuery(queryParams url.Values) *Directory