From 851ad419e937d996b7e8747bec39b68c042b5f78 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 28 Oct 2020 13:06:38 +0000 Subject: [PATCH] fix lint --- config.go | 1 + main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index bdbe833..70d5503 100644 --- a/config.go +++ b/config.go @@ -12,6 +12,7 @@ func readConfigFile(file string) *map[string]interface{} { log.Fatal(err) } + // Parse json var config map[string]interface{} err = json.Unmarshal(configFile, &config) if err != nil { diff --git a/main.go b/main.go index a255bf1..74e99ee 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ func main() { config := readConfigFile(*configFile) // create & write corefile - data := renderTemplateFile(config, *coreFile) + data := renderTemplateFile(config, *templateFile) err := ioutil.WriteFile(*outFile, data, 0644) if err != nil { log.Fatal(err)