You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/asiyani/wifi

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/asiyani/wifi

v0.0.0-20180325165140-f4e1ed543212
Source
Go
Version published
Created
Source

wifi

use wifi to get information about connected wireless in go app. Following information is available.

type Info struct {
	SSID        string 
	Mac         string 
	Security    string
	Channel     string
	Frequency   string
	SignalLevel string
	MaxRate     string
}

Install

go get github.com/asiyani/wifi

Example

	out, err := wifi.GetInfo()
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", out)

	//output:-
	//{SSID:5GHz-wifi Mac:44:44:44:44:44:44 Security:wpa2-psk Channel:44,1 Frequency:5220 SignalLevel:-70 MaxRate:300}

Licence

MIT

FAQs

Package last updated on 25 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts