From b4956ca703627918a302758e0f3c0b3114a6392d Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Thu, 23 Jul 2015 12:07:47 -0400 Subject: [PATCH] more @tianon changes --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() {