Skip to content

ahmedmaazin/mvflights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVFlights (Maldives Flights Schedule) Golang playground

Example:

<Arrivals>
    <UpdateTime>20220409 04:47</UpdateTime>
    <Flight>
        <AirLineID>GF</AirLineID>
        <AirLineName>GULF AIR</AirLineName>
        <FlightID>GF144</FlightID>
        <Route1>BAHRAIN</Route1>
        <Route2></Route2>
        <Route3></Route3>
        <Route4></Route4>
        <Route5></Route5>
        <Route6></Route6>
        <Scheduled>06:05</Scheduled>
        <Estimated>05:51</Estimated>
        <Status></Status>
        <Gate></Gate>
        <Terminal></Terminal>
        <CheckinArea></CheckinArea>
        <Date>20220409</Date>
        <PrimaryFlight></PrimaryFlight>
        <CarrierType>I</CarrierType>
    </Flight>
</Arrivals>

to

[
    {
        "update_time": "20220409 05:32",
        "flights": [
            {
                "update_time": "GF",
                "airline_name": "GULF AIR",
                "flight_id": "GF144",
                "route_1": "BAHRAIN",
                "route_2": " ",
                "route_3": " ",
                "route_4": " ",
                "route_5": " ",
                "route_6": " ",
                "scheduled": "06:05",
                "estimated": "05:55",
                "status": " ",
                "gate": " ",
                "terminal": " ",
                "checkin_area": " ",
                "date": "20220409",
                "primary_flight": " ",
                "carrier_type": "I"
            }
        ]
    }
]

Install dependencies

go get ./...

Clean & Run

go mod tidy

go run main.go

Debug

(in IntelliJ IDEA)

  1. Mark the break point in the IDE
  2. Right click main.go
  3. Click Debug go 'build main.go'
  4. Allow & start debugging.

Testing

go test -v

About

Maldives flights schedules app.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages