Hardinfo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

GetHardInfo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBiosInfo

func GetBiosInfo() string

BIOS信息

func GetCpuInfo

func GetCpuInfo() string

CPU信息 简单的获取方法fmt.Sprintf("Num:%d Arch:%s\n", runtime.NumCPU(), runtime.GOARCH)

func GetDiskInfo

func GetDiskInfo() (infos []diskusage)

硬盘信息

func GetIntfs

func GetIntfs() []intfInfo

网卡信息

func GetMemory

func GetMemory() string

内存信息

func GetMotherboardInfo

func GetMotherboardInfo() string

主板信息

func GetStartTime

func GetStartTime() string

开机时间

func GetSystemVersion

func GetSystemVersion() string

系统版本

func GetUserName

func GetUserName() string

当前用户名

func MachineCodeDecrypt

func MachineCodeDecrypt(mc string) (key, mac string, ok bool)

功能:机器码解码 输入:机器码 输出:密钥,密文,密文的crc校验结果

func MachineCodeEncrypt

func MachineCodeEncrypt(keySupplementary string) string

功能:用网卡信息和硬盘信息生成机器码,并输出机器码 输入:密钥补充码 输出:机器码

func PrintHardInfo

func PrintHardInfo()

Types

This section is empty.

Jump to

Keyboard shortcuts

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