Skip to content

dholtzmann/fileserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

fileserver

Go package for serving static files.

The original http.FileServer() will show directory listings, this one does not.

Example

func main() {
	fs := simplefileserver.OnlyFilesFilesystem{http.Dir("/tmp/")}
	http.ListenAndServe(":8080", http.FileServer(fs))
}

About

Tiny Golang package for serving static files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages