diff options
author | tycho garen <garen@tychoish.com> | 2013-07-06 19:36:30 -0400 |
---|---|---|
committer | tycho garen <garen@tychoish.com> | 2013-07-06 22:32:50 -0400 |
commit | a7f5f97bc2c8941cbe9ade740e3c0e54202d8613 (patch) | |
tree | 96f3933a3bc7788852807b4a1c085094f2c2b45a /hugolib/config.go | |
parent | f875577197c307116f11c33be0d3f1f95594a500 (diff) |
sanity: move from json to yaml
Diffstat (limited to 'hugolib/config.go')
-rw-r--r-- | hugolib/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |