From 8c24068b204d05f1504845e76255fc1df82801fa Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 24 Aug 2018 13:07:20 +0000 Subject: [PATCH] swap lcoal function --- enhanced-file-server.go | 2 +- example/main.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/enhanced-file-server.go b/enhanced-file-server.go index c086606..5fb6a71 100644 --- a/enhanced-file-server.go +++ b/enhanced-file-server.go @@ -715,7 +715,7 @@ type fileHandler struct { // As a special case, the returned file server redirects any request // ending in "/index.html" to the same path, without the final // "index.html". -func FileServer(root FileSystem) http.Handler { +func FileServer(root http.FileSystem) http.Handler { return &fileHandler{root} } diff --git a/example/main.go b/example/main.go index 3e4594f..572d604 100644 --- a/example/main.go +++ b/example/main.go @@ -2,6 +2,7 @@ package main import ( "gitto.work/shortcut/enhancedfileserver" + "log" "net/http" "os" )