Refactoring modules

This commit is contained in:
Giuseppe Trotta 2019-02-10 23:58:08 +01:00
parent c0d3c314fc
commit ed652622e2
89 changed files with 186 additions and 138 deletions

View file

@ -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
}