An unoffical train status wrapper for use with Amtrak!
This package uses the data available from amtrak and converts it into usable train information.
go get -u "github.com/ATTron/amtrak"
import (
"fmt"
"github.com/ATTron/amtrak"
)
func main() {
fmt.Println("SHOWING TRAIN 95: ", amtrak.GetTrain(95))
}
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)
}
Full documentation can be found on pkg.go.dev