goInfo:获取操作系统信息,请使用golang

时间:2024-06-02 16:02:39
【文件属性】:

文件名称:goInfo:获取操作系统信息,请使用golang

文件大小:5KB

文件格式:ZIP

更新时间:2024-06-02 16:02:39

Go

介绍: GoInfo是由Golang获取的OS平台信息编码。 它可以帮助您了解操作系统信息。 版本: 版本:0.0.1 期货 获取Linux信息 获取Windows信息 获取osx信息 获取freebsd信息 安装: go get github.com/matishsiao/goInfo go build 结构: type GoInfoObject struct { GoOS string Kernel string Core string Platform string OS string Hostname string CPUs int } 例子: package main import ( " github.com/matishsiao/goInfo " ) func main () { gi := goInfo.G


【文件预览】:
goInfo-master
----.gitignore(259B)
----README.md(874B)
----LICENSE(1KB)
----goInfo.go(655B)
----goInfo_darwin.go(851B)
----goInfo_windows.go(791B)
----goInfo_linux.go(852B)
----goInfo_freebsd.go(856B)

网友评论