Using markdown v2

This commit is contained in:
2022-09-15 21:38:04 +08:00
parent 25ccd64a88
commit 292665c49b
4 changed files with 44 additions and 33 deletions

View File

@@ -25,3 +25,9 @@ func ( busStop BusStop ) NextStop() *BusStop {
}
return nil
}
type ByRouteId []BusStop
func (a ByRouteId) Len() int { return len(a) }
func (a ByRouteId) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func (a ByRouteId) Less(i, j int) bool { return a[i].RouteId < a[j].RouteId }