github.com/shamsher31/goimgtype

Return type of image based on mime type


Keywords
golang, package, image, mime
License
MIT
Install
go get github.com/shamsher31/goimgtype

Documentation

goimgtype

Godoc Build Status GitHub release MIT License

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

goimgext
govdoext
gobinext

License

MIT © Shamsher Ansari