go 的自定义排序
type entity struct{
Id int64
UserLongtitude float64
UserLatitude float64
Longitude float64
Latitude float64
}
type list []*entity
func (s list) Len() int {
return len(s)
}
func (s list)
go 的自定义排序
type entity struct{
Id int64
UserLongtitude float64
UserLatitude float64
Longitude float64
Latitude float64
}
type list []*entity
func (s list) Len() int {
return len(s)
}
func (s list)