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

https://github.com/ferhatelmas/go-image

Check if a given path is an image file
https://github.com/ferhatelmas/go-image

Last synced: 2 months ago
JSON representation

Check if a given path is an image file

Awesome Lists containing this project

README

        

## go-image

[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/ferhatelmas/go-image)
[![Build Status](https://travis-ci.org/ferhatelmas/go-image.png?branch=master)](https://travis-ci.org/ferhatelmas/go-image)

> Check if a filepath is an image file.

### Install

```
go get github.com/ferhatelmas/go-image
```

### Usage

```go
import "github.com/ferhatelmas/go-image"

image.Is("src/unicorn.png")
//=> true

image.Is("src/unicorn.go")
//=> false
```

### License

MIT © [ferhat elmas](http://ferhatelmas.com)