diff --git a/main.go b/main.go index a12d6a8561c1332a0e55fafd41c6aab1774a3c34..4e9bde0c9d2886428b8812e7fc21a9828bf1b81e 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