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

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

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

Last synced: 2 months ago
JSON representation

Check if a given path is a video file

Awesome Lists containing this project

README

        

## go-video

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

> Check if a filepath is a video file.

### Install

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

### Usage

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

video.Is("src/unicorn.mp4")
//=> true

video.Is("src/unicorn.txt")
//=> false
```

### License

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