https://github.com/moriyoshi/mimetypes
A simple library for parsing Apache-style mime.types / XDG-defined media type globs
https://github.com/moriyoshi/mimetypes
apache go golang mime xdg
Last synced: 2 months ago
JSON representation
A simple library for parsing Apache-style mime.types / XDG-defined media type globs
- Host: GitHub
- URL: https://github.com/moriyoshi/mimetypes
- Owner: moriyoshi
- License: mit
- Created: 2019-01-31T08:33:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-02T05:17:55.000Z (over 6 years ago)
- Last Synced: 2025-03-07T02:49:09.497Z (2 months ago)
- Topics: apache, go, golang, mime, xdg
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## mimetypes
[](https://godoc.org/github.com/moriyoshi/mimetypes)
[](https://travis-ci.com/moriyoshi/mimetypes)
A simple library for parsing Apache-style mime.types / XDG-defined media type globs.
This library was created to overcome the limitation of the implementation of `mime` package, which takes it for granted that an apache-style mime type file is installed in any of the hard-coded locations as for Unix-like platform.
### Usage
Be sure to import `github.com/moriyoshi/mimetypes/loaders` if you want to use the default loader implementations, like the following:
```go
import (
_ "github.com/moriyoshi/mimetypes/loaders"
)
```This ensures the default loaders to be compiled and incorporated into the build.
### License
MIT