摘要:
实例2: 阅读全文
摘要:
package main import ( "fmt" "github.com/StackExchange/wmi" ) type Storage struct { Name string FileSystem string Total uint64 Free uint64 } type storageInfo struct { Name ... 阅读全文
摘要:
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... 阅读全文
摘要:
package main import ( "fmt" "log" "net" "strings" ) type Network struct { Name string IP string MACAddress string } type intfInfo struct { Name string MacAddress strin... 阅读全文
摘要:
输出结果: total := 17054044160 free=: 12900540416 阅读全文