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.
11 lines
207 B
11 lines
207 B
|
4 days ago
|
package routers
|
||
|
|
|
||
|
|
// IDs gets array of IDs from RoutersList struct
|
||
|
|
func (rl RoutersList) IDs() []string {
|
||
|
|
res := make([]string, 0, len(rl))
|
||
|
|
for _, c := range rl {
|
||
|
|
res = append(res, c.ID)
|
||
|
|
}
|
||
|
|
return res
|
||
|
|
}
|