Updated readmes and example
This commit is contained in:
@@ -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
3
example/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# enhancedfileserver example
|
||||
|
||||
This is the smallest possible example. For something more interesting, check out https://gitto.work/shortcut/httphere
|
@@ -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))))
|
||||
}
|
||||
|
Reference in New Issue
Block a user