Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 789 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 789 Bytes

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