Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultType = "application/octet-stream"
DefaultType is the type used when we can't know/guess the filetype.
Variables ¶
This section is empty.
Functions ¶
func ByExtension ¶
ByExtension calls mime.TypeByExtension, and removes optional parameters, to keep only the type and subtype. Example: text/html
func FromReader ¶
FromReader takes a reader, sniffs the beginning of it, and returns the mime-type (no charset) and a new reader that's the concatenation of the bytes sniffed and the remaining reader.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.