go-assets icon indicating copy to clipboard operation
go-assets copied to clipboard

How to implement http.FileSystem interfaces in assets?

Open zcvxcv opened this issue 3 years ago • 0 comments

Hi~  How to implement http.FileSystem interfaces in assets? Gin like this:

import (
	"github.com/gin-gonic/gin"
	"github.com/jessevdk/go-assets"
)
func main() {
         r := gin.Default()
         r.StaticFS ("/css", http.Dir("/css"))  // What should be substituted for the “http.Dir("/css")” ?
}

zcvxcv avatar Sep 15 '20 08:09 zcvxcv