😋 Unix file command written in Go
Switch branches/tags
Nothing to show
Clone or download
joeky888 Compatible with old version
Signed-off-by: Joeky Zhan <jj16180339887@gmail.com> <Joeky_Zhan@asus.com>
Latest commit ae0d0cc Dec 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Init Nov 30, 2018
ReadMe.md More Nov 30, 2018
main.go Compatible with old version Dec 3, 2018
release.sh Screen shot Nov 30, 2018

ReadMe.md

@joeky888 needs file command on Windows, so he made one.

Screen shot

Features

  • Pure Go, static binary without libmagic
  • Lightweight, The only dependency is os
  • Cross-platform: No unix specific code like mmap

Install binary

Download from https://github.com/joeky888/fil/releases

Install from source

go get -u github.com/joeky888/fil

Usage

Just like unix file command

$ fil <FILE_NAME>

MIT Licence

The code is based on toybox (but it is written in C, and only runs on unix-like OS)

TODO

  1. Port more code from toybox/file.c
  2. Port more code from filetype/matchers
  3. More magic