github.com/kwilczynski/magic (go): Package magic implements See: http://www.darwinsys.com/file/  This example show the basic usage of the package: Open and initialize Magic library, set appropriate flags, for a given file find its MIME identification (as per the flag set), print the results and close releasing all initialized resources.  This example shows how to use Open together with a closure.  This example shows how to use the Separator to split results when the CONTINUE flag is set and more than one match was returned by the Magic library.
Keywords: c|cgo|file-format|file-format-detection|go|golang|magic|mime|mime-types|recognition