feat(Go-StudyExample):2020/12/15: 新增通过gopsutil包读取服务器信息的方法

This commit is contained in:
Huangzj
2020-12-15 14:08:58 +08:00
parent 1361db0274
commit fd73da44a2
5 changed files with 88 additions and 19 deletions
+8
View File
@@ -0,0 +1,8 @@
这边使用到的是gopsUtil[gopsutil](https://github.com/shirou/gopsutil)
获取对应的github代码命令:go get -u https://github.com/shirou/gopsutil
在获取包的时候会发生Sum.goland.org校验但是连接不上的问题,解决方案可以参考:[Go工程下载包 Sum.goland.org无法连通问题](https://blog.csdn.net/qq_34326321/article/details/111207006)
![image](goProxyProblem.png)