prepare for complete rewrite

This commit is contained in:
Henrique Dias committed 2017-06-20 11:35:16 +01:00
1 parent 8c19eda25f
commit f4f1444e24
59 files changed
-15134

No files matched your search

-21
View File
@@ -1,21 +0,0 @@
package main
import (
"net/http"
"github.com/hacdias/filemanager"
handlers "github.com/hacdias/filemanager/http"
)
var cfg *filemanager.Config
func handler(w http.ResponseWriter, r *http.Request) {
handlers.ServeHTTP(w, r, cfg)
}
func main() {
cfg = filemanager.New("D:\\TEST\\")
http.HandleFunc("/", handler)
http.ListenAndServe(":8080", nil)
}