()
| 13 | var userUsableGroupsMutex sync.RWMutex |
| 14 | |
| 15 | func 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 | |
| 26 | func UserUsableGroups2JSONString() string { |
| 27 | userUsableGroupsMutex.RLock() |
no outgoing calls
no test coverage detected