From 8fac7c1a415d6ea5e41c28f4e7ab5c1ef0883997 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 8 Feb 2017 11:55:59 +0100 Subject: chore: Better example & gofmt --- templater/templater.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'templater') diff --git a/templater/templater.go b/templater/templater.go index f4be1e6fa60d..27beff371e5c 100644 --- a/templater/templater.go +++ b/templater/templater.go @@ -1,16 +1,16 @@ package templater import ( + "bytes" "fmt" "io/ioutil" - "strings" "os" "path" + "strings" "text/template" - "bytes" - "github.com/tazjin/kontemplate/context" "github.com/polydawn/meep" + "github.com/tazjin/kontemplate/context" ) // Error that is caused by non-existent template files being specified @@ -28,7 +28,7 @@ func LoadAndPrepareTemplates(c *context.Context) ([]string, error) { output := make([]string, 0) for _, rs := range c.ResourceSets { - fmt.Fprintf(os.Stderr,"Loading resources for %s\n", rs.Name) + fmt.Fprintf(os.Stderr, "Loading resources for %s\n", rs.Name) rp := path.Join(c.BaseDir, rs.Name) files, err := ioutil.ReadDir(rp) @@ -40,7 +40,6 @@ func LoadAndPrepareTemplates(c *context.Context) ([]string, error) { ) } - for _, file := range files { if !file.IsDir() && isResourceFile(file) { p := path.Join(rp, file.Name()) -- cgit 1.4.1