magicmime: MIME type detection in Go
I recently discovered rakyll’s new Go library magicmime on GitHub. In simple words, this library provides MIME type detection for files or buffers in Go. For example, if you have a file uploaded to your application, you might want to figure out its MIME type (e.g. if it is an image or a video file). This project is a demo of how to do C bindings in Go: It uses libmagic(3) to make calls directly to this native library.
Read More →