Releases: errornil/mta
Releases · errornil/mta
v2.0.0
- Changed organization
chuhlomin
→errornil
, so importgithub.com/errornil/mta/v2
SubwayTimeClient
renamed toFeedsClient
.NewBusTimeClient
,NewFeedsClient
,NewLIRRClient
now accepthttp.Client
andUser-Agent
and return error along with client.- Clients check that response status code is 200.
BusTimeClient
handles any errors returned from API (likeAPI key is not authorized.
).- Added errors
ErrAPIKeyRequired
,ErrAPIKeyNotAuthorized
andErrClientRequired
. - Added unit tests.
- Fixed typo in
Departures
struct field name:Tranis
→Trains