mirror of
https://github.com/documize/community.git
synced 2025-07-23 23:29:42 +02:00
initial commit
This commit is contained in:
commit
18933c6767
1841 changed files with 810642 additions and 0 deletions
26
vendor/github.com/mytrile/mime-ext/README.md
generated
vendored
Normal file
26
vendor/github.com/mytrile/mime-ext/README.md
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
# 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)
|
Loading…
Add table
Add a link
Reference in a new issue