Skip to content

shamsher31/goimgtype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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