diff options
author | Jakob Unterwurzacher | 2015-09-14 00:45:41 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-09-14 00:45:41 +0200 |
commit | fdc0fef6ee3da5a48428669aa1045108485b8a6c (patch) | |
tree | 456c03de2eb847b82e23fd05bebf2d3230645a6a | |
parent | eee2c017dc39d2e0df025dc73cbad0f5b7f8e358 (diff) |
Use MarshalIndent for JSON generation
-rw-r--r-- | cryptfs/config_file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptfs/config_file.go b/cryptfs/config_file.go index 5651716..a3f6ba3 100644 --- a/cryptfs/config_file.go +++ b/cryptfs/config_file.go @@ -90,7 +90,7 @@ func (cf *confFile) WriteFile() error { if err != nil { return err } - js, err := json.Marshal(cf) + js, err := json.MarshalIndent(cf, "", "\t") if err != nil { return err } |