This commit is contained in:
Sergey Gonimar 2017-03-01 13:42:59 +05:00 committed by Bo-Yi Wu
parent b1872ec369
commit 38cc731224

2
fs.go
View File

@ -14,7 +14,7 @@ type (
}
)
// Dir returns a http.Filesystem that can be used by http.FileServer(). It is used interally
// Dir returns a http.Filesystem that can be used by http.FileServer(). It is used internally
// in router.Static().
// if listDirectory == true, then it works the same as http.Dir() otherwise it returns
// a filesystem that prevents http.FileServer() to list the directory files.