在golang中获取SSID/其他网络信息 [英] Get SSID/ other network information in golang

查看:268
本文介绍了在golang中获取SSID/其他网络信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在golang中获取SSID和其他网络信息?

How can I get the SSID and other network information in golang?

例如,当前连接到我的网络.

For example the network to wich I am currently conected.

推荐答案

似乎没有本机的Go命令可以执行此操作.您可以改为在Go代码中执行特定于系统的工具,然后检查其输出.例子是

There does not seem to be a native Go command to do this. You might instead execute system-specific tools from within your Go code and check their output. Examples are

https://github.com/yelinaung/wifi-name (Linux和OS X)

https://github.com/yelinaung/wifi-name (Linux and OS X)

带有golang的可用无线网络列表(在Linux下)

https://github.com/skycoin/skycoin/tree/master/src/aether/wifi (Linux)

对于Java来说似乎是相同的:

This seems to be the same for Java:

https://stackoverflow.com/a/12785503/1370397

这篇关于在golang中获取SSID/其他网络信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆