mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
26 lines
530 B
Markdown
26 lines
530 B
Markdown
# mime-ext
|
|
|
|
This is a library that adds a huge number of mime types for using with [mime.TypeByExtension()](http://golang.org/pkg/mime/#TypeByExtension)
|
|
|
|
## Usage
|
|
|
|
``` go
|
|
|
|
package main
|
|
|
|
import (
|
|
"mime"
|
|
_ "github.com/mytrile/mime-ex"
|
|
)
|
|
|
|
func main() {
|
|
gz_type := mime.TypeByExtension(".gz") //=> "application/gzip"
|
|
}
|
|
```
|
|
|
|
## Meta
|
|
|
|
* Author : Dimitar Kostov
|
|
* Email : mitko.kostov@gmail.com
|
|
* Website : [http://mytrile.github.com](http://mytrile.github.com)
|
|
* Twitter : [http://twitter.com/mytrile](http://twitter.com/mytrile)
|