Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filetype.IsApplication isn't defined ? #108

Closed
InfoLibre opened this issue Nov 17, 2021 · 1 comment
Closed

filetype.IsApplication isn't defined ? #108

InfoLibre opened this issue Nov 17, 2021 · 1 comment

Comments

@InfoLibre
Copy link

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

@h2non
Copy link
Owner

h2non commented Nov 21, 2021

Fixed in v1.1.3

@h2non h2non closed this as completed Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants