There was an error where I messed up with {{ if .viper}}.

This commit is contained in:
Raphael Tiersch 2017-07-31 16:36:49 +02:00
parent 832cc94e04
commit c36ef206d1

View file

@ -143,18 +143,17 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/Fjolnir-Dvorak/environ"{{if .viper}} "github.com/Fjolnir-Dvorak/environ"
"github.com/spf13/cobra"{{if .viper}} "github.com/spf13/cobra"{{if .viper}}
"github.com/spf13/viper" "github.com/spf13/viper"
"path/filepath"{{end}} "path/filepath"{{end}}
){{if .viper}} )
const ( const (
VendorName = "" VendorName = ""
ApplicationName = "{{.appName}}" ApplicationName = "{{.appName}}"
DefaultConfType = "yaml" DefaultConfType = "yaml"
) )
{{end}}
var ({{if .viper}} var ({{if .viper}}
cfgFile string{{end}} cfgFile string{{end}}
Environ environ.Environ Environ environ.Environ