diff --git a/main.go b/main.go index a9e56ae..4e5fbb5 100644 --- a/main.go +++ b/main.go @@ -37,7 +37,7 @@ func writePageError(w http.ResponseWriter, message string, code int) error { return writePage(w, message, code) } -func writePageGo(w http.ResponseWriter, path string, pkg *Package, code int) error { +func writePageGo(w http.ResponseWriter, path string, pkg Package, code int) error { return writePage(w, fmt.Sprintf(` %s %s @@ -57,8 +57,8 @@ func loadConfig() (ret []Package, err error) { return } -func loadRoutes(packages []Package) (routes map[string]*Package) { - routes = map[string]*Package{} +func loadRoutes(packages []Package) (routes map[string]Package) { + routes = map[string]Package{} for _, pkg := range packages { for _, route := range pkg.GetRoutes() {