Now generates mime file

This commit is contained in:
David Paz
2017-07-10 12:50:52 +02:00
parent 5df52d50a6
commit 125c802582
4 changed files with 13 additions and 2 deletions

View File

@ -53,6 +53,10 @@ func IsDocumentation(path string) bool {
return data.DocumentationMatchers.Match(path)
}
func GetMimeType(file string) string {
return data.LanguagesMime[file]
}
const sniffLen = 8000
// IsBinary detects if data is a binary value based on: