feat(hardware): 自 go-hua 迁入硬件信息采集与变更检测
- WMI 采集主板/BIOS/显卡/内存/CPU/硬盘等 11 类设备 + 变更比对 - 新增依赖 gopsutil/yusufpapurcu/wmi, 附测试、例程与 README
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//go:build unix
|
||||
|
||||
package hardware
|
||||
|
||||
// GetHardwareInfo 采集硬件信息(Linux 未实现,返回空结构)
|
||||
func GetHardwareInfo() (Hardware, error) {
|
||||
hardware := Hardware{}
|
||||
|
||||
// 没有在 linux上实现,主是因为 都是在windows上使用,所以没有实现
|
||||
|
||||
return hardware, nil
|
||||
}
|
||||
Reference in New Issue
Block a user