package
Version:
v29.0.0+incompatible
Opens a new window with list of versions in this module.
Published: Jan 19, 2017
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Mimemagic - Detect mime-types in Go
import "bitbucket.org/taruti/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.
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.