Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/shamsher31/govdotype

Return type of video based on mime type
https://github.com/shamsher31/govdotype

Last synced: 4 days ago
JSON representation

Return type of video based on mime type

Awesome Lists containing this project

README

        

# govdotype

[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/shamsher31/govdotype)
[![Build Status](https://travis-ci.org/shamsher31/govdotype.svg)](https://travis-ci.org/shamsher31/govdotype)
[![GitHub release](http://img.shields.io/github/release/shamsher31/govdotype.svg?style=flat-square)](release)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](license)

Return type of video based on mime type which is useful when you are writing video uploading apps.

### How to install
```go
go get github.com/shamsher31/govdotype
```

### How to use
```go
package main

import (
"fmt"
"github.com/shamsher31/govdotype"
)

func main() {
fmt.Println(vdotype.Get("./golang.mp4"))
// video/mp4
}
```

### Related
[goimgtype](https://github.com/shamsher31/goimgtype)

[goimgext](https://github.com/shamsher31/goimgext)

[govdoext](https://github.com/shamsher31/govdoext)

# License
MIT © [Shamsher Ansari](https://github.com/shamsher31)