example fixes
This commit is contained in:
parent
bf203aa38c
commit
5b620714d3
|
@ -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))))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue