sk-matrix-project/app/wails/pkg/system/cpu.go

11 lines
145 B
Go
Raw Normal View History

2023-07-09 23:04:17 +08:00
package system
import (
"github.com/shirou/gopsutil/cpu"
)
func GetCpuInfo() []cpu.InfoStat {
infoStats, _ := cpu.Info()
return infoStats
}