From 3497536f19b7b43631697bb2e828a46239194542 Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Mon, 26 Dec 2016 15:33:18 +0800 Subject: [PATCH] GoLint --- conf.go | 4 ++-- routers.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf.go b/conf.go index dab5628..e16a7f1 100644 --- a/conf.go +++ b/conf.go @@ -11,7 +11,7 @@ type server struct { Host string Port int Docroot string - UrlRules []rule + URLRules []rule EnableProxy bool Vhost []vhost } @@ -21,7 +21,7 @@ type vhost struct { Hostname string Cert string Key string - UrlRules []rule + URLRules []rule } type rule struct { diff --git a/routers.go b/routers.go index 4533ffc..8545e08 100644 --- a/routers.go +++ b/routers.go @@ -36,7 +36,7 @@ func initRouters(cfg conf) { } } r := router.Host(h2).Subrouter() - for _, rule := range h.UrlRules { + for _, rule := range h.URLRules { switch rule.Type { case "alias": registerAliasHandler(rule, r) @@ -54,7 +54,7 @@ func initRouters(cfg conf) { } // default host config - for _, rule := range l.UrlRules { + for _, rule := range l.URLRules { switch rule.Type { case "alias": registerAliasHandler(rule, router)