From 4f6a93b1bb6bf48fedf47dcb98b536549b4ca9c1 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 2 Apr 2015 20:30:57 +0900 Subject: [PATCH] Fixing extensions --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 27f02fb..b181b3f 100644 --- a/main.go +++ b/main.go @@ -50,15 +50,15 @@ func parse(filename string) (*config, error) { conf := &config{} switch path.Ext(filename) { - case "json": + case ".json": if err := json.Unmarshal(bytes, &conf); err != nil { return nil, err } - case "toml": + case ".toml": if err := toml.Unmarshal(bytes, &conf); err != nil { return nil, err } - case "yaml": + case ".yaml": if err := yaml.Unmarshal(bytes, &conf); err != nil { return nil, err }