From a7f5f97bc2c8941cbe9ade740e3c0e54202d8613 Mon Sep 17 00:00:00 2001 From: tycho garen Date: Sat, 6 Jul 2013 19:36:30 -0400 Subject: sanity: move from json to yaml --- hugolib/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hugolib/config.go') diff --git a/hugolib/config.go b/hugolib/config.go index abb25046a..84d6ce966 100644 --- a/hugolib/config.go +++ b/hugolib/config.go @@ -14,7 +14,7 @@ package hugolib import ( - "encoding/json" + "launchpad.net/goyaml" "fmt" "io/ioutil" "os" @@ -55,7 +55,7 @@ func SetupConfig(cfgfile *string, path *string) *Config { file, err := ioutil.ReadFile(configPath) if err == nil { - if err := json.Unmarshal(file, &c); err != nil { + if err := goyaml.Unmarshal(file, &c); err != nil { fmt.Printf("Error parsing config: %s", err) os.Exit(1) } -- cgit v1.2.3