Golang interface for talking to wpa_supplicant.
go get github.com/go-laeo/wpasupplicant
// Prints the BSSID (MAC address) and SSID of each access point in range:
w, err := wpasupplicant.Connect(context.Background(), "wlan0")
if err != nil {
panic(err)
}
for _, bss := range w.ScanResults() {
fmt.Fprintf("%s\t%s\n", bss.BSSID(), bss.SSID())
}
Three-clause BSD. See LICENSE.txt.