From efbbc98a32938a7d9381b7f2386d140c526e5620 Mon Sep 17 00:00:00 2001
From: Jean-Francois Guillou <Jean-Francois.Guillou@univ-nantes.fr>
Date: Thu, 1 Dec 2022 12:57:27 +0100
Subject: [PATCH] Normalize json names

---
 main.go | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/main.go b/main.go
index a12d6a8..4e9bde0 100644
--- a/main.go
+++ b/main.go
@@ -14,22 +14,22 @@ import (
 )
 
 type SambaConfig struct {
-	Shares []Share
-	Home   Home
+	Shares []Share `json:"shares"`
+	Home   Home    `json:"home"`
 }
 
 type Share struct {
-	Name          string
-	Path          string
-	Comment       string
-	LimitedWrites bool
-	AccessGroups  []string
-	WriteGroups   []string
-	ForceGroup    string
+	Name          string   `json:"name"`
+	Path          string   `json:"path"`
+	Comment       string   `json:"comment"`
+	LimitedWrites bool     `json:"limitedWrites"`
+	AccessGroups  []string `json:"accessGroups"`
+	WriteGroups   []string `json:"writeGroups"`
+	ForceGroup    string   `json:"forceGroup"`
 }
 
 type Home struct {
-	Path string
+	Path string `json:"path"`
 }
 
 var filepath string
-- 
GitLab