Files
decort-golang-sdk/pkg/cloudapi/pcidevice/ids.go
2024-04-16 14:26:06 +03:00

11 lines
239 B
Go

package pcidevice
// IDs gets array of PCIDeviceIDs from ListPCIDevices struct
func (lpd ListPCIDevices) IDs() []uint64 {
res := make([]uint64, 0, len(lpd.Data))
for _, lb := range lpd.Data {
res = append(res, lb.ID)
}
return res
}