ing
This commit is contained in:
parent
fa1c6caa6a
commit
311c0cace2
2
util.go
2
util.go
|
@ -187,7 +187,7 @@ func marshal(target interface{}, ext string) ([]byte, error) {
|
||||||
}
|
}
|
||||||
return buf.Bytes(), nil
|
return buf.Bytes(), nil
|
||||||
case ".json":
|
case ".json":
|
||||||
return json.Marshal(target)
|
return json.MarshalIndent(target, "", "\t")
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("Config: Not supported extention[%s]", ext)
|
return nil, fmt.Errorf("Config: Not supported extention[%s]", ext)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user