aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-14 00:45:41 +0200
committerJakob Unterwurzacher2015-09-14 00:45:41 +0200
commitfdc0fef6ee3da5a48428669aa1045108485b8a6c (patch)
tree456c03de2eb847b82e23fd05bebf2d3230645a6a
parenteee2c017dc39d2e0df025dc73cbad0f5b7f8e358 (diff)
Use MarshalIndent for JSON generation
-rw-r--r--cryptfs/config_file.go2
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
}