Skip to content

HTTP Fileserver

Latest
Compare
Choose a tag to compare
@chilledoj chilledoj released this 29 Sep 23:04
a85a904

Added ability to use directly as file server (it implements fs.FS) and therefore be used a static server in an HTTP context via http.FS.

mgr := NewManager(Options{ZipFileName: "./testdata/sqlfiles.zip"})
mux := http.NewServeMux()
mux.Handle("/", http.FileServer(http.FS(mgr)))