Updated readmes and example

This commit is contained in:
Your Name 2018-09-02 22:05:46 +00:00
parent 012e8f270f
commit dbb3fc7743
3 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Additional code by shortcut
// HTTP file system request handler
package enhancedfileserver

3
example/README.md Normal file
View File

@ -0,0 +1,3 @@
# enhancedfileserver example
This is the smallest possible example. For something more interesting, check out https://gitto.work/shortcut/httphere

View File

@ -15,5 +15,5 @@ func main() {
log.Fatal(err)
}
log.Fatal(http.ListenAndServe(":12345", enhancedfileserver.FileServer(enhancedfileserver.Dir(dir))))
log.Fatal(http.ListenAndServe(":12345", enhancedfileserver.FileServer(http.Dir(dir))))
}