Hi there,
I decided to learn Zig a couple of weeks ago and realized my starting project required identifying file types (in particular, if a file is a text/binary file). I found some libraries around (including libmagic) but could not find anything written purely in Zig (probably because I didn’t search well enough). So, I wrote zmime (GitHub - avac74/zmime: A dependency‑free file type detection library written in Zig.)
This is pretty much my first (real) project with Zig. Any suggestions to improve functionality and to make the code more idiomatic are very much welcomed!
Thanks!