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.
19 lines
442 B
19 lines
442 B
package grid
|
|
|
|
// IDs gets array of GRIDID from ListGrids struct
|
|
func (lg ListGrids) IDs() []uint64 {
|
|
res := make([]uint64, 0, len(lg.Data))
|
|
for _, e := range lg.Data {
|
|
res = append(res, e.GID)
|
|
}
|
|
return res
|
|
}
|
|
|
|
// IDs gets array of GRIDID from ListResourceConsumption struct
|
|
func (lg ListResourceConsumption) IDs() []uint64 {
|
|
res := make([]uint64, 0, len(lg.Data))
|
|
for _, e := range lg.Data {
|
|
res = append(res, e.GID)
|
|
}
|
|
return res
|
|
} |