...

Package sysinfo

import "internal/sysinfo"
Overview
Index

Overview ▾

Package sysinfo implements high level hardware information gathering that can be used for debugging or information purposes.

Index ▾

Package files

cpuinfo_linux.go sysinfo.go

Variables

var CPUName = sync.OnceValue(func() string {
    if name := cpu.Name(); name != "" {
        return name
    }

    if name := osCPUInfoName(); name != "" {
        return name
    }

    return ""
})