Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shamsher31/goimgtype
- Owner: shamsher31
- License: mit
- Created: 2015-08-23T16:35:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T09:01:20.000Z (over 1 year ago)
- Last Synced: 2024-06-18T22:58:17.462Z (5 months ago)
- Topics: golang, image, mime, package
- Language: Go
- Size: 72.3 KB
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: license
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 mainimport (
"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)