Skip to content

supanadit/media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Serve your shareable public directory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages