wifiscan Go library to scan Wi-Fi access points. aps, _ := wifiscan.Scan(ctx, "wlan0") for _, ap := range aps { fmt.Printf("BSSID: %s, Signal: %d\n", ap.BSSID, ap.Signal) } Supporting macOS and Linux. On Linux, this may need sudo.