Skip to content

billyfbrain/mimemagic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mimemagic - Detect mime-types in Go

forked from bitbucket.org/taruti/mimemagic

import "github.com/billyfbrain/mimemagic"

Import the library

mimemagic.Match(myguess string, startoffile []byte) string

The API:

  • myguess is a guess of the mimetype that is checked first before other types are checked. It may also be "".
  • startoffile contains the beginning of the file - e.g. giving it 1024 bytes from the start of the file works fine.
  • the result is the guessed mimetype or "" if not known.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published