v12.0.0
This commit is contained in:
1 parent
1ccc37a104
commit
cf584c8123
1175 files changed
+11022
-1832
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package acsgroups
|
||||
|
||||
// IDs gets array of IDs from AccessGroupList struct
|
||||
func (agl AccessGroupList) IDs() []string {
|
||||
res := make([]string, 0, len(agl.AccessGroups))
|
||||
for _, c := range agl.AccessGroups {
|
||||
res = append(res, c.ID)
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
// IDs gets array of IDs from UsersList struct
|
||||
func (ul UsersList) IDs() []string {
|
||||
res := make([]string, 0, len(ul.Users))
|
||||
for _, c := range ul.Users {
|
||||
res = append(res, c.ID)
|
||||
}
|
||||
return res
|
||||
}
|
||||
Reference in new issue
Block a user