MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / UserUsableGroups2JSONString

Function UserUsableGroups2JSONString

setting/user_usable_group.go:26–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func UserUsableGroups2JSONString() string {
27 userUsableGroupsMutex.RLock()
28 defer userUsableGroupsMutex.RUnlock()
29
30 jsonBytes, err := json.Marshal(userUsableGroups)
31 if err != nil {
32 common.SysError("error marshalling user groups: " + err.Error())
33 }
34 return string(jsonBytes)
35}
36
37func UpdateUserUsableGroupsByJSONString(jsonStr string) error {
38 userUsableGroupsMutex.Lock()

Callers 1

InitOptionMapFunction · 0.92

Calls 2

SysErrorFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected