Versions in this module Expand all Collapse all v1 v1.54.4 Nov 23, 2020 Changes in this version + func Error(what interface{}, w http.ResponseWriter, text string, err error) + func Object(w http.ResponseWriter, r *http.Request, o fs.Object) + 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