Skip to content
/ mime Public

A simple Go package that extends the standard library's mime package

License

Notifications You must be signed in to change notification settings

litl/mime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mime

mime is a simple Go package that extends the mime package from the standard library with:

  • A mime.Type type, that represents a MIME Type
  • A mime.DefaultExtension function, which returns an extension given a mime.Type

Example

package main

import (
	"fmt"
	"github.com/litl/mime"
)

func main() {
	t := mime.Type("video/x-matroska")
	fmt.Printf("Type %s has default extension %s\n", t, t.DefaultExtension())
}

About

A simple Go package that extends the standard library's mime package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages