mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
Refactoring modules
This commit is contained in:
parent
c0d3c314fc
commit
ed652622e2
89 changed files with 186 additions and 138 deletions
|
@ -1,16 +0,0 @@
|
|||
// +build !windows
|
||||
// +build !darwin
|
||||
|
||||
package modules
|
||||
|
||||
import (
|
||||
"github.com/bettercap/bettercap/network"
|
||||
)
|
||||
|
||||
type ByBLERSSISorter []*network.BLEDevice
|
||||
|
||||
func (a ByBLERSSISorter) Len() int { return len(a) }
|
||||
func (a ByBLERSSISorter) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
|
||||
func (a ByBLERSSISorter) Less(i, j int) bool {
|
||||
return a[i].RSSI > a[j].RSSI
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue