From 9b22a1dae129ae6f309af725bee228eb9e51b72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadej=20Jane=C5=BE?= Date: Fri, 17 Sep 2021 13:42:13 +0200 Subject: [PATCH] go/common/entity: Use pretty-printed JSON when saving entity to file --- go/common/entity/entity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/common/entity/entity.go b/go/common/entity/entity.go index 76657afbc0f..8c4b2688b88 100644 --- a/go/common/entity/entity.go +++ b/go/common/entity/entity.go @@ -129,7 +129,7 @@ func (e *Entity) Save(baseDir string) error { entityPath := filepath.Join(baseDir, entityFilename) // Write to disk. - b, err := json.Marshal(e) + b, err := json.MarshalIndent(e, "", " ") if err != nil { return err }