赞
踩
https://github.com/lycclsltt/system
Go语言获取实时网速(gopacket实践)_Bpazy的博客-CSDN博客_gopacket
GO 获取指定网卡流量_oria2006的专栏-CSDN博客_golang 网卡流量
GitHub - seknox/trasa: Zero Trust Service Access
D:\gopath\src\trasa\server\api\system\hSystemStatus.go
- //import "github.com/shirou/gopsutil/v3/net"
-
- func NetStatus() []net.IOCountersStat{
-
- IOCountersStat, err := net.IOCounters(true)
- if err != nil {
- logrus.Error(err)
- }
-
- fmt.Printf("%v", IOCountersStat)
- return IOCountersStat
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。