Versions in this module Expand all Collapse all v1 v1.20240717.0 Jul 17, 2024 v1.20240529.0 Apr 23, 2024 Changes in this version + var ErrBadFileExtension = errors.New("bad file extension") + var ErrBadIndexBase = errors.New("bad index base") + var ErrBadRequestType = errors.New("bad request type") + func GetFileKindByExt(ext string) (string, string) + func SetExtMimeType(ext string, mtype string) error + func SetMarkdownExt(ext string) error + type HttpPath struct + func New(fsys fs.FS, root string, req string, index string) (*HttpPath, error) + func (hp *HttpPath) Dir() string + func (hp *HttpPath) Doc() string + func (hp *HttpPath) Ext() string + func (hp *HttpPath) FullDir() string + func (hp *HttpPath) FullDoc() string + func (hp *HttpPath) FullReq() string + func (hp *HttpPath) HasDoc() bool + func (hp *HttpPath) IsDir() bool + func (hp *HttpPath) Kind() string + func (hp *HttpPath) LastMod() string + func (hp *HttpPath) Mime() string + func (hp *HttpPath) ModTime() time.Time + func (hp *HttpPath) Name() string + func (hp *HttpPath) NewSibling(relpath string) (*HttpPath, error) + func (hp *HttpPath) Req() string + func (hp *HttpPath) Root() string + func (hp *HttpPath) UpdateModTime(mod time.Time)