Skip to content

jeremyje/coretempsdk-go

Repository files navigation

CoreTemp Go Bindings

Go bindings for ALCPU's Core Temp shared memory interface.

For this library to work Core Temp must be running in the background and the SDK's GetCoreTempInfo.dll must be located in the same directory as the Go binary.

Example

package main

import (
 "log"

 "github.com/jeremyje/coretempsdk-go"
)

func main() {
 info, err := coretempsdk.GetCoreTempInfo()
 if err != nil {
  log.Printf("ERROR: %s", err)
  return
 }
 log.Printf("CPU: %s", info.CPUName)
 log.Printf("Temperatures: %v", info.Temperature)
}

SDK DLL

Download the Core Temp SDK which contains the GetCoreTempInfo.dll to interact with Core Temp. The preferred DLL is Shared Memory Framework for Native\Shared Memory Libraries\x64\GetCoreTempInfo.dll.

You can visit the developer page for more details.