mime-ext

May 25, 2014 ยท View on GitHub

This is a library that adds a huge number of mime types for using with mime.TypeByExtension()

Usage


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
  • Twitter : http://twitter.com/mytrile

Contents

  1. 1Usage
  2. 2Meta