posted @ 2019-07-01 14:44
清明-心若淡定
阅读(2667)
推荐(0)
编辑
摘要:
package main import ( "fmt" "github.com/StackExchange/wmi" ) type Storage struct { Name string FileSystem string Total uint64 Free uint64 } type storageInfo struct { Name ...
阅读全文
posted @ 2019-07-01 14:40
清明-心若淡定
阅读(3454)
推荐(0)
编辑
摘要:
package main import ( "fmt" "github.com/StackExchange/wmi" ) type gpuInfo struct { Name string } func getGPUInfo() { var gpuinfo []gpuInfo err := wmi.Query("Select * from Win32_VideoControl...
阅读全文
posted @ 2019-07-01 14:37
清明-心若淡定
阅读(1239)
推荐(0)
编辑
摘要:
package main import ( "fmt" "log" "net" "strings" ) type Network struct { Name string IP string MACAddress string } type intfInfo struct { Name string MacAddress strin...
阅读全文
posted @ 2019-07-01 14:35
清明-心若淡定
阅读(1652)
推荐(0)
编辑
摘要:
输出结果: total := 17054044160 free=: 12900540416
阅读全文
posted @ 2019-07-01 14:23
清明-心若淡定
阅读(2899)
推荐(0)
编辑