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
- Host: GitHub
- URL: https://github.com/supanadit/media
- Owner: supanadit
- Created: 2020-05-08T22:20:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-09T16:17:04.000Z (over 5 years ago)
- Last Synced: 2023-03-10T10:35:50.326Z (over 2 years ago)
- Topics: go, go-library, golang
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Media
Easily serve your shareable public directory
## Installation
`go get github.com/supanadit/media`## Quick Start
```go
package mainimport (
"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