Get SSID/ other network information in golang

故事扮演 提交于 2019-12-10 17:28:43

问题


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

For example the network to wich I am currently conected.


回答1:


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 and OS X)

or

List of available wireless networks with golang (under Linux)

or

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

This seems to be the same for Java:

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



来源:https://stackoverflow.com/questions/39592607/get-ssid-other-network-information-in-golang

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!