@joeky888 needs file
command on Windows, so he made one.
- Pure Go, static binary without libmagic
- Lightweight, The only dependency is os
- Cross-platform: No unix specific code like mmap
Download from https://github.com/joeky888/fil/releases
go get -u github.com/joeky888/fil
Just like unix file command
$ fil <FILE_NAME>
The code is based on toybox (but it is written in C, and only runs on unix-like OS)
- Port more code from toybox/file.c
- Port more code from filetype/matchers
- More magic