chore: Better example & gofmt

This commit is contained in:
Vincent Ambo 2017-02-08 11:55:59 +01:00
parent 8fb24f9f75
commit 8fac7c1a41
6 changed files with 42 additions and 14 deletions

View file

@ -1,8 +1,8 @@
package main
import (
"os"
"fmt"
"os"
"github.com/tazjin/kontemplate/context"
"github.com/tazjin/kontemplate/templater"
@ -22,10 +22,10 @@ func main() {
os.Exit(1)
}
fmt.Fprintf(os.Stderr,"Applying cluster %s\n", c.Name)
fmt.Fprintf(os.Stderr, "Applying cluster %s\n", c.Name)
for _, rs := range c.ResourceSets {
fmt.Fprintf(os.Stderr,"Applying resource %s with values %v\n", rs.Name, rs.Values)
fmt.Fprintf(os.Stderr, "Applying resource %s with values %v\n", rs.Name, rs.Values)
resources, err := templater.LoadAndPrepareTemplates(c)
if err != nil {