摘要: Go语言获取Ubuntu所有网卡名 需求 获取当前机器下所有网卡名,以字符串数组的形式返回 实现demo package main import ( "fmt" "os/exec" "strings" ) func main() { s := GetLocalNetDeviceNames() fmt 阅读全文
posted @ 2020-08-07 15:52 Kingram 阅读(786) 评论(0) 推荐(0) 编辑