16 lines
253 B
Go
16 lines
253 B
Go
package query
|
|
|
|
type ISearchable interface {
|
|
HasWords() bool
|
|
Test(string) bool
|
|
GetKey() *string
|
|
|
|
HasGeoLocation() bool
|
|
Lat() float64
|
|
Lon() float64
|
|
Dist(lat float64, lon float64) float64
|
|
|
|
// Clean() filtering
|
|
Register(map[string]struct{}) bool
|
|
}
|