go-ozzo / ozzo-routing

An extremely fast Go (golang) HTTP router that supports regular expression route matching. Comes with full support for building RESTful APIs.
MIT License
455 stars 51 forks source link

Working with elazarl/go-bindata-assetfs #39

Closed susilolab closed 6 years ago

susilolab commented 7 years ago

how to serving static file from go-binddata-assetfs files? thanks

susilolab commented 6 years ago

work with http.FileServer

fs := http.FileServer(assetFS())
http.Handle("/web/", http.StripPrefix("/web/", fs))

thanks