How to implement http.FileSystem interfaces in assets?
zcvxcv opened this issue · comments
Keven commented
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")” ?
}