From c14c815a1919a1528bddddfe645a66c381fc1a42 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 26 Sep 2015 21:39:27 +0100 Subject: [PATCH] gofmt simplify --- browse/browse.go | 2 +- utils/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/browse/browse.go b/browse/browse.go index 632cfb79..4a21c210 100644 --- a/browse/browse.go +++ b/browse/browse.go @@ -208,7 +208,7 @@ func get(w http.ResponseWriter, r *http.Request, c *config.Config) (int, error) }), Root: "./", Configs: []browse.Config{ - browse.Config{ + { PathScope: "/", Variables: c, Template: tpl, diff --git a/utils/utils.go b/utils/utils.go index 86c249f8..6cdb3756 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -184,7 +184,7 @@ func SplitCapitalize(name string) string { } name = strings.ToLower(name[:len(name)-1]) - name = strings.ToUpper(string(name[0])) + name[1:len(name)] + name = strings.ToUpper(string(name[0])) + name[1:] return name }