For a program I'm writing I need to scan many files, and detect media 
(audio/video) files.
For this reason I wrote a very simple wrapper for libmagic, that provides a 
very simple API (a single function) and it is safe for concurrent use by 
multiple goroutines.

https://gist.github.com/perillo/a3af2d5322ce43da8b89167d494b19f9

Note that this is a specialized package (I defined it as an internal 
package inside my module), but it may be useful.
Feedback is welcome.


Manlio Perillo

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to