We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Specify the MIME type and extension for which to add support yaml and markdown
Share an example file
Optionally, add a reference to the specification of the file format. yaml markdown
The text was updated successfully, but these errors were encountered:
You can do this:
yamlDetector := func(raw []byte, limit uint32) bool { return true } mimetype.Lookup("text/plain").Extend(yamlDetector, "text/yaml", ".yaml") mimetype.Lookup("text/plain").Extend(yamlDetector, "text/yaml", ".yml")
Or something more robust, such as loading the YAML file.
Sorry, something went wrong.
No branches or pull requests
Specify the MIME type and extension for which to add support
yaml and markdown
Share an example file
Optionally, add a reference to the specification of the file format.
yaml markdown
The text was updated successfully, but these errors were encountered: