Documentation ¶
Index ¶
- Variables
- func GetFileKindByExt(ext string) (string, string)
- func SetExtMimeType(ext string, mtype string) error
- func SetMarkdownExt(ext string) error
- type HttpPath
- 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)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadFileExtension = errors.New("bad file extension")
View Source
var ErrBadIndexBase = errors.New("bad index base")
View Source
var ErrBadRequestType = errors.New("bad request type")
Functions ¶
func GetFileKindByExt ¶
func SetExtMimeType ¶
func SetMarkdownExt ¶
Types ¶
type HttpPath ¶
type HttpPath struct {
// contains filtered or unexported fields
}
func (*HttpPath) UpdateModTime ¶
Click to show internal directories.
Click to hide internal directories.