Cli to project github.com/gabriel-vasile/mimetype
>> go-mimetype-cli.exe -file README.md`
>> {"mime":"text/plain; charset=utf-8","extension":".txt"}
Simple way to check a file's type by looking at bytes. On linux you will prefer to use the file command. On windows this cli can be an option.