Swap kind to bytes and reduce chunk size
This commit is contained in:
parent
ceca4eb7fa
commit
aa4df38ead
3 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ func jsonPath(name string) string {
|
|||
// Save will serialise the interface into a json file
|
||||
func Save(name string, data interface{}) error {
|
||||
path := jsonPath(name)
|
||||
if b, err := json.MarshalIndent(data, "", "\t"); err != nil {
|
||||
if b, err := json.MarshalIndent(data, "", " "); err != nil {
|
||||
return err
|
||||
} else {
|
||||
if err := ioutil.WriteFile(jsonPath(name), b, os.ModePerm); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue