From fdc0fef6ee3da5a48428669aa1045108485b8a6c Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 14 Sep 2015 00:45:41 +0200 Subject: Use MarshalIndent for JSON generation --- cryptfs/config_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cryptfs') 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 } -- cgit v1.2.3