gabriel-vasile / mimetype

A fast Golang library for media type and file extension detection, based on magic numbers
https://pkg.go.dev/github.com/gabriel-vasile/mimetype#pkg-overview
MIT License
1.48k stars 156 forks source link

Using io.ReadAll instead of ioutil.ReadAll #525

Closed phihungtf closed 1 month ago

phihungtf commented 1 month ago

ioutil.ReadAll is deprecated: As of Go 1.16, this function simply calls [io.ReadAll]