example fixes

This commit is contained in:
Your Name 2018-08-24 13:10:48 +00:00
parent bf203aa38c
commit 5b620714d3
1 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,9 @@ import (
func main() { func main() {
dir, err := os.Getwd() dir, err := os.Getwd()
if err != nil {
log.Fatal(err)
}
log.Fatal(http.ListenAndServe(":12345", enhancedfileserver.FileServer(http.Dir(dir)))) log.Fatal(http.ListenAndServe(":12345", enhancedfileserver.FileServer(enhancedfileserver.Dir(dir))))
} }