Documentation ¶
Index ¶
- Variables
- func Fetch(url string) *http.Response
- func FetchHTML(url string) *html.Node
- func FetchJSON(url string) string
- func GetTubeNames() []string
- func StopPointDeadline(ID string, line string, night bool) string
- func StopPointSearchURL(query string) string
- func StopPointURL(ID string) string
- func StringInSlice(a string, list []string) bool
- func TubeStatus() string
- type StopPointDataResp
- type StopPointSearchResp
- type Tube
Constants ¶
This section is empty.
Variables ¶
BoldFormat prints text in white/bold font
Functions ¶
func GetTubeNames ¶
func GetTubeNames() []string
GetTubeNames is a static list of available tube lines
func StopPointDeadline ¶
StopPointDeadline is HTML for first/last trains from station
func StopPointSearchURL ¶
StopPointSearchURL search for station
func StringInSlice ¶
StringInSlice checks if `x in arr`
Types ¶
type StopPointDataResp ¶
type StopPointDataResp struct { Lines []struct { ID string } }
StopPointDataResp gets the station ID
Click to show internal directories.
Click to hide internal directories.