structs.go 444 B

12345678910111213141516171819202122232425
  1. package main
  2. type (
  3. Opts struct {
  4. From, To, Date, Time, Mode, Route string
  5. NoAirplane, NoShinkansen, NoExpress, NoExpressBus, NoBus, NoFairy bool
  6. }
  7. Route struct {
  8. Time, Duration, TransitCunt, Fare string
  9. Badges []int
  10. Stations []Station
  11. }
  12. Station struct {
  13. Time, Name string
  14. Fares []Fare
  15. }
  16. Fare struct {
  17. Train, Color, Platform string
  18. Stops []Stop
  19. }
  20. Stop struct {
  21. Time, Name string
  22. }
  23. )