Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1018 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 1018 Bytes

goimgtype

Godoc Go 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