sanity: move from json to yaml

This commit is contained in:
tycho garen
2013-07-06 19:36:30 -04:00
parent f875577197
commit a7f5f97bc2
21 changed files with 82 additions and 82 deletions

View File

@@ -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)
}