Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shamsher31/goisvdo
Check if filepath is a video file
https://github.com/shamsher31/goisvdo
Last synced: 4 days ago
JSON representation
Check if filepath is a video file
- Host: GitHub
- URL: https://github.com/shamsher31/goisvdo
- Owner: shamsher31
- License: mit
- Created: 2015-08-16T09:04:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-25T15:13:02.000Z (about 9 years ago)
- Last Synced: 2023-08-04T09:59:46.827Z (over 1 year ago)
- Language: Go
- Size: 145 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# goisvdo
[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/shamsher31/goisvdo)
Check if filepath is a video file
### How to install
```go
go get github.com/shamsher31/goisvdo
```### How to use
```go
package mainimport (
"fmt"
"github.com/shamsher31/goisvdo"
)func main() {
fmt.Println(video.Is("./golang.mp4"))
// true
}
```
###Aliasing Imports
If you already have package name ```video``` you can use following.
```go
package mainimport (
"fmt"
videoPath "github.com/shamsher31/goisvdo"
)func main() {
fmt.Println(videoPath.Is("./golang.mp4"))
// true
}
```### Related
[govdoext](https://github.com/shamsher31/govdoext)
[goistext](https://github.com/ferhatelmas/goistext)
[goisimg](https://github.com/ferhatelmas/goisimg)### Why
This package is inspired by [is-video](https://www.npmjs.com/package/is-video) npm module.### License
MIT © [Shamsher Ansari](https://github.com/shamsher31)