filetype.IsApplication isn't defined ?
InfoLibre opened this issue · comments
InfoLibre commented
I'm using this code:
if filetype.IsArchive(head) {
fileType = "archive"
} else if filetype.IsDocument(head) {
fileType = "document"
} else if filetype.IsFont(head) {
fileType = "font"
} else if filetype.IsAudio(head) {
fileType = "audio"
} else if filetype.IsVideo(head) {
fileType = "video"
} else if filetype.IsImage(head) {
fileType = "image"
} else if filetype.IsApplication(head) {
fileType = "application"
} else {
fileType = "other"
}
Go displays this error:
undefined: filetype.IsApplication
Tom commented
Fixed in v1.1.3