hardinfo

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 14 Imported by: 0

README

hardinfo

Get Hard waer infomation

Documentation

Overview

hardinfo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBiosInfo

func GetBiosInfo() string

BIOS信息

func GetBoardInfo

func GetBoardInfo() []*boardinfo

主板信息

func GetCpuInfo

func GetCpuInfo() []string

CPU信息 第一个字符串为CPU核心数,第二个字符串为CPU类型

func GetDiskDriverInfo

func GetDiskDriverInfo() []*diskdriver

硬盘信息

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 PrintHardInfo

func PrintHardInfo()

func WlanInfo

func WlanInfo(wifiname ...string) (map[string]string, error)

***************************************************

功能:读取WIFI连接的接口信息
输入:
	wifiname string:WIFI连接的名称
输出:
	map[string]string:接口信息
	error:错误信息
说明:
时间:2024年2月22日
编辑:wang_jp

***************************************************

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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