From bf203aa38ccc3dcce647b19ce7eb930073e99077 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 24 Aug 2018 13:09:05 +0000 Subject: [PATCH] swap lcoal function --- enhanced-file-server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enhanced-file-server.go b/enhanced-file-server.go index 5fb6a71..c086606 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 http.FileSystem) http.Handler { +func FileServer(root FileSystem) http.Handler { return &fileHandler{root} }