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

Function GetUserUsableGroupsCopy

setting/user_usable_group.go:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13var userUsableGroupsMutex sync.RWMutex
14
15func GetUserUsableGroupsCopy() map[string]string {
16 userUsableGroupsMutex.RLock()
17 defer userUsableGroupsMutex.RUnlock()
18
19 copyUserUsableGroups := make(map[string]string)
20 for k, v := range userUsableGroups {
21 copyUserUsableGroups[k] = v
22 }
23 return copyUserUsableGroups
24}
25
26func UserUsableGroups2JSONString() string {
27 userUsableGroupsMutex.RLock()

Callers 1

GetUserUsableGroupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected