goimgtype
Return type of image based on mime type
How to install
go get github.com/shamsher31/goimgtype
How to use
package main
import (
"fmt"
"github.com/shamsher31/goimgtype"
)
func main() {
fmt.Println(imgtype.Get("./golang.jpg"))
// image/jpeg
}
Related
License
MIT © Shamsher Ansari