hydrate

package
v0.0.0-...-afcd3cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Grab

func Grab(url string) ([]byte, error)

Types

type TrainView

type TrainView []struct {
	Lat         string  `json:"lat"`
	Lon         string  `json:"lon"`
	Trainno     string  `json:"trainno"`
	Service     string  `json:"service"`
	Dest        string  `json:"dest"`
	Currentstop string  `json:"currentstop"`
	Nextstop    string  `json:"nextstop"`
	Line        string  `json:"line"`
	Consist     string  `json:"consist"`
	Heading     float64 `json:"heading"`
	Late        int     `json:"late"`
	Source      string  `json:"SOURCE"`
	Track       string  `json:"TRACK"`
	TrackChange string  `json:"TRACK_CHANGE"`
}

func Hydrate

func Hydrate(b []byte) (*TrainView, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL