访问内存设备信息的Go软件包。-Golang开发

时间:2021-05-26 19:03:09
【文件属性】:
文件名称:访问内存设备信息的Go软件包。-Golang开发
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-26 19:03:09
Golang Utilities 访问内存设备信息的Go软件包。 go-memdev一个Go包,用于访问内存设备信息。 安装开始get -u github.com/bitcav/go-memdev用法包main import(“ encoding / json”“ fmt”“ github.com/bitcav/go-memdev”)func main(){memInfo,_:= memdev .Info()//返回的值是一个结构jsonOutput,_:= json.MarshalIndent(memInfo,“”,“”)fmt.Println(string(jsonOutput))}输出如下。 [{“ bank”:“ DIMM A”,“ size”:4096,“ unit”:“ MB”,“ type”:
【文件预览】:
go-memdev-master
----go.mod(122B)
----utils.go(729B)
----images()
--------logo.png(5KB)
----memdev_test.go(444B)
----.travis.yml(269B)
----LICENSE(1KB)
----go.sum(241B)
----README.md(2KB)
----memdev.go(3KB)

网友评论