Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 609 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 609 Bytes

Media

Easily serve your shareable public directory

Installation

go get github.com/supanadit/media

Quick Start

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 web framework, but soon it will support Echo as well