Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shamsher31/goimgtype

Return type of image based on mime type
https://github.com/shamsher31/goimgtype

golang image mime package

Last synced: 4 days ago
JSON representation

Return type of image based on mime type

Awesome Lists containing this project

README

        

# goimgtype

[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/shamsher31/goimgtype)
[![Go](https://github.com/shamsher31/goimgtype/actions/workflows/go.yml/badge.svg)](https://github.com/shamsher31/goimgtype/actions/workflows/go.yml)
[![GitHub release](http://img.shields.io/github/release/shamsher31/goimgtype.svg?style=flat-square)](release)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](license)

Return type of image based on mime type

### How to install
```go
go get github.com/shamsher31/goimgtype
```

### How to use
```go
package main

import (
"fmt"
"github.com/shamsher31/goimgtype"
)

func main() {
fmt.Println(imgtype.Get("./golang.jpg"))
// image/jpeg
}
```

### Related
[goimgext](https://github.com/shamsher31/goimgext)

[govdoext](https://github.com/shamsher31/govdoext)

[gobinext](https://github.com/shamsher31/gobinext)

# License
MIT © [Shamsher Ansari](https://github.com/shamsher31)