This commit is contained in:
crusader 2017-10-13 12:37:18 +09:00
parent fa1c6caa6a
commit 311c0cace2

View File

@ -187,7 +187,7 @@ func marshal(target interface{}, ext string) ([]byte, error) {
}
return buf.Bytes(), nil
case ".json":
return json.Marshal(target)
return json.MarshalIndent(target, "", "\t")
default:
return nil, fmt.Errorf("Config: Not supported extention[%s]", ext)
}