temp
This commit is contained in:
@@ -6,12 +6,12 @@ type Agency struct {
|
||||
AgencyURL string `json:"agency_url" csv:"agency_url"`
|
||||
AgencyTimezone string `json:"agency_timezone" csv:"agency_timezone"`
|
||||
AgencyLang string `json:"agency_lang" csv:"agency_lang"`
|
||||
Routes map[string]*Route
|
||||
//Routes map[string]*Route
|
||||
}
|
||||
|
||||
func (a *Agency) AddRoute(route *Route) {
|
||||
if a.Routes == nil {
|
||||
a.Routes = make(map[string]*Route)
|
||||
}
|
||||
a.Routes[route.RouteID] = route
|
||||
}
|
||||
// func (a *Agency) AddRoute(route *Route) {
|
||||
// if a.Routes == nil {
|
||||
// a.Routes = make(map[string]*Route)
|
||||
// }
|
||||
// a.Routes[route.RouteID] = route
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user