0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-09-11 12:24:27 +00:00

indent generated json

This commit is contained in:
vx3r
2020-02-01 16:08:37 +09:00
parent c9fb3c2e29
commit 9cccc0f26b
3 changed files with 22 additions and 2 deletions

View File

@ -258,7 +258,7 @@ func UpdateServer(server *model.Server) (*model.Server, error) {
// Write object to disk
func serialize(id string, c interface{}) error {
b, err := json.Marshal(c)
b, err := json.MarshalIndent(c, "", " ")
if err != nil {
return err
}