cputemp

package module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 5 Imported by: 0

README

CPU Temperature Monitor

Simple Go library to get CPU temperature.
Windows: via WMI ACPI.
Linux: via /sys/class/thermal.

Usage

package main

import (
    "fmt"
    "log"
    
    "github.com/northwindlight/cputemp"
)

func main() {
    temp, err := cputemp.GetCPUTemperature()
    if err != nil {
        log.Fatal(err)
    }
    
    fmt.Printf("CPU Temperature: %.1f°C\n", temp)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPUTemperature

func GetCPUTemperature() (float64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL