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

https://github.com/supanadit/media

Serve your shareable public directory
https://github.com/supanadit/media

go go-library golang

Last synced: 7 months ago
JSON representation

Serve your shareable public directory

Awesome Lists containing this project

README

          

# Media

Easily serve your shareable public directory

## Installation
`go get github.com/supanadit/media`

## Quick Start

```go
package main

import (
"github.com/gin-gonic/gin"
"github.com/supanadit/media"
)

func main() {
// Create instance of Gin Engine
g := gin.Default()
// Serve and create shared directory
_ = media.Gin(g).SetDestination("./upload").Create()
// Serve gin at port :8080
_ = g.Run(":8080")
}

```

## Note
Sorry, currently its only support [**Gin**](https://github.com/gin-gonic/gin) web framework, but soon it will support [**Echo**](https://github.com/labstack/echo) as well