h2non / filetype

Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature

Home Page:https://pkg.go.dev/github.com/h2non/filetype?tab=doc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export max size of header needed

zwass opened this issue · comments

It would be helpful if this package exported the maximum size of the header slice that would be used to match against. Currently this information is available in the README, and is hardcoded in my package that uses it.

If the size were exported, I could import that and ensure that my application automatically retrieves the updated length slice when this library is updated.