1 Star 2 Fork 1

up-zero/gotool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
temperature_test.go 229 Bytes
一键复制 编辑 原始数据 按行查看 历史
GetcharZp 提交于 2024-09-11 18:32 +08:00 . feat linux 获取CPU温度
package gotool
import (
"fmt"
"testing"
)
func TestCPUTemperatures(t *testing.T) {
temps := CPUTemperatures()
for _, v := range temps {
fmt.Printf("CPU 传感器 (%s) 温度: %.1f°C\n", v.SensorType, v.Temperature)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/up-zero/gotool.git
git@gitee.com:up-zero/gotool.git
up-zero
gotool
gotool
main

搜索帮助