You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
445 B
20 lines
445 B
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
|
|
}
|