/amtrak

simple amtrak data wrapper for go

Primary LanguageGoGNU General Public License v3.0GPL-3.0

AMTRAK

An unoffical train status wrapper for use with Amtrak!
This package uses the data available from amtrak and converts it into usable train information.

Usage

go get -u "github.com/ATTron/amtrak"
import (
    "fmt"
    "github.com/ATTron/amtrak"
)

func main() {
    fmt.Println("SHOWING TRAIN 95: ", amtrak.GetTrain(95))
}

Functions

Currently this only has 2 functions. Return a specific train or return every train.

import (
    "github.com/ATTron/amtrak"
)
func main() {
    allTrains := amtrak.GetAllTrains()
    myTrain := amtrak.GetTrain(95)
}

Additional Docs

Full documentation can be found on pkg.go.dev