stations

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	// contains filtered or unexported fields
}

List list of available stations

func Load

func Load(path string) *List

Load load stations from file

func (*List) GetRows

func (l *List) GetRows(width int) []string

GetRows get list of stations for ui list

func (*List) GetSelected

func (l *List) GetSelected(selected int) *station

GetSelected get selected station by it's index

func (*List) Reload

func (l *List) Reload()

Reload reloads list

Jump to

Keyboard shortcuts

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