Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultPattern = "*.tmpl"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type ContentTypeDetect ¶ added in v1.0.37
func NewContentTypeDetect ¶ added in v1.0.37
func NewContentTypeDetect() *ContentTypeDetect
func (*ContentTypeDetect) DetectContentType ¶ added in v1.0.37
func (m *ContentTypeDetect) DetectContentType(r io.Reader, info fs.FileInfo) (string, string, error)
DetectContentType returns the detected content type and optionally character set of the given reader, assuming the reader is at the beginning of the file. Will return an empty string if the file has no content, or application/octet-stream if the filetype could not be determined.
Click to show internal directories.
Click to hide internal directories.