Documentation ¶
Index ¶
- Constants
- func Group(u *user.User) (string, error)
- type ContentType
- func (c ContentType) Charset() (cs string)
- func (c ContentType) Encoding() (e encoding.Encoding)
- func (c ContentType) IsCSS() bool
- func (c ContentType) IsDownload() bool
- func (c ContentType) IsEmpty() bool
- func (c ContentType) IsHTML() bool
- func (c ContentType) IsJS() bool
- func (c ContentType) IsPlain() bool
- func (c ContentType) IsSvg() bool
- func (c ContentType) Utf8(buf []byte) string
- type Fetcher
Constants ¶
View Source
const PathPrefix = "opossum"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContentType ¶
func NewContentType ¶
func NewContentType(s string, u *url.URL) (c ContentType, err error)
NewContentType based on mime type string and url including file extension as fallback
func (ContentType) Charset ¶
func (c ContentType) Charset() (cs string)
func (ContentType) Encoding ¶
func (c ContentType) Encoding() (e encoding.Encoding)
func (ContentType) IsCSS ¶
func (c ContentType) IsCSS() bool
func (ContentType) IsDownload ¶
func (c ContentType) IsDownload() bool
func (ContentType) IsEmpty ¶
func (c ContentType) IsEmpty() bool
func (ContentType) IsHTML ¶
func (c ContentType) IsHTML() bool
func (ContentType) IsJS ¶
func (c ContentType) IsJS() bool
func (ContentType) IsPlain ¶
func (c ContentType) IsPlain() bool
func (ContentType) IsSvg ¶
func (c ContentType) IsSvg() bool
func (ContentType) Utf8 ¶
func (c ContentType) Utf8(buf []byte) string
Click to show internal directories.
Click to hide internal directories.