Categorygithub.com/ATTron/amtrak
repositorypackage
0.0.0-20240711053859-ed4ce09bf8b6
Repository: https://github.com/attron/amtrak.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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