diff --git a/enhanced-file-server.go b/enhanced-file-server.go index 39c98ae..8156ba9 100644 --- a/enhanced-file-server.go +++ b/enhanced-file-server.go @@ -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 diff --git a/example/README.md b/example/README.md new file mode 100644 index 0000000..924228c --- /dev/null +++ b/example/README.md @@ -0,0 +1,3 @@ +# enhancedfileserver example + +This is the smallest possible example. For something more interesting, check out https://gitto.work/shortcut/httphere diff --git a/example/main.go b/example/main.go index cfc4362..50a6eb2 100644 --- a/example/main.go +++ b/example/main.go @@ -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)))) }