Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-02T05:17:55.000Z (almost 6 years ago)
- Last Synced: 2023-08-13T06:29:24.805Z (over 1 year 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
[![godoc](https://godoc.org/github.com/moriyoshi/mimetypes?status.svg)](https://godoc.org/github.com/moriyoshi/mimetypes)
[![travis-ci](https://travis-ci.com/moriyoshi/mimetypes.svg?branch=master)](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