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
- Host: GitHub
- URL: https://github.com/ferhatelmas/go-image
- Owner: ferhatelmas
- License: mit
- Created: 2015-06-05T10:44:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-05T10:59:03.000Z (almost 10 years ago)
- Last Synced: 2025-01-24T12:13:46.302Z (4 months ago)
- Language: Go
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
## go-image
[](https://godoc.org/github.com/ferhatelmas/go-image)
[](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")
//=> trueimage.Is("src/unicorn.go")
//=> false
```### License
MIT © [ferhat elmas](http://ferhatelmas.com)