简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
【golang】syscall 获取本机网卡IP、网关,可以通过IP地址来进行路由选择(多网卡)
package mainimport ("fmt""syscall""net""unsafe""sort")type rtInfo struct {Dst net.IPNetGateway, PrefSrc net.IPOutputIface uint32Priority uint32}type routeSlice []*rtInfotype router struct {ifaces []ne
到底了