Remove Deprecated methods in README.md · Issue #157 · h2non/filetype
package main import ( "fmt" "io/ioutil" "github.com/h2non/filetype" ) func main() { buf, _ := ioutil.ReadFile("sample.jpg") kind, _ := filetype.Match(buf) if kind == filetype.Unknown { fmt.Println(...