Skip to content

seanzhengw/fileonlyserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fileonlyserver

static file handler without directory listings for net/http

This is just a packaging of http.FileServer,

but disabled directory listings by return 404.

Install

go get -u github.com/seanzhengw/fileonlyserver

Examples

use it like http.FileServer

http.Handle("/", fileonlyserver.Serve(http.Dir("/tmp")))

About

static file handler without directory listings for net/http

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages