Updated readmes and example
This commit is contained in:
parent
012e8f270f
commit
dbb3fc7743
|
@ -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
|
||||
|
|
|
@ -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))))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue