yizhibenpao / go-filetype

prue go parse file magic.gc to go code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-filetype

go-filetype is a toolkit to deal with libmagic rule files (sources, not compiled)

It contains:

  • A parser, which turn magic rule files into an AST
  • An interpreter, which identifies a target by following the rules in the AST
  • A compiler, which generates go code to follow the rules in the AST

About

prue go parse file magic.gc to go code

License:MIT License


Languages

Language:Go 99.9%Language:Shell 0.1%