Go package for serving static files.
The original http.FileServer() will show directory listings, this one does not.
func main() {
fs := simplefileserver.OnlyFilesFilesystem{http.Dir("/tmp/")}
http.ListenAndServe(":8080", http.FileServer(fs))
}| Name | Name | Last commit date | ||
|---|---|---|---|---|
Go package for serving static files.
The original http.FileServer() will show directory listings, this one does not.
func main() {
fs := simplefileserver.OnlyFilesFilesystem{http.Dir("/tmp/")}
http.ListenAndServe(":8080", http.FileServer(fs))
}