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

add basic filetypes #17

Closed
vtolstov opened this issue Feb 3, 2017 · 2 comments
Closed

add basic filetypes #17

vtolstov opened this issue Feb 3, 2017 · 2 comments
Labels

Comments

@vtolstov
Copy link

vtolstov commented Feb 3, 2017

please add text , json, yaml ...

@h2non h2non added the question label Feb 4, 2017
@h2non
Copy link
Owner

h2non commented Feb 4, 2017

Only binary files can be supported with the current lookup mechanism. For text-based files context inferring is required. That is outside of the purpose of this library and won't be supported.

Also, you can check file fotmat based on file extension, but that's gives you any real guarantee.

@vtolstov
Copy link
Author

vtolstov commented Feb 6, 2017

Thanks, i'm try this detection and after that fallback to mime.TypeByExt

@vtolstov vtolstov closed this as completed Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants