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