diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-02-08T10·55+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-02-08T10·55+0100 |
commit | 8fac7c1a415d6ea5e41c28f4e7ab5c1ef0883997 (patch) | |
tree | 260ba1c9e7056d97e6e8e41d5c76c8ada183e2ed /templater | |
parent | 8fb24f9f750c4d87f1f36f11ca80f86c78832be6 (diff) |
chore: Better example & gofmt
Diffstat (limited to 'templater')
-rw-r--r-- | templater/templater.go | 9 |
1 files changed, 4 insertions, 5 deletions
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()) |