config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(cfg Value) error

Types

type Value

type Value struct {
	Version   string   `json:"-"`
	Debug     bool     `json:"-"`
	LogPath   string   `json:"-"`
	Favorites []string `json:"favorites,omitempty"` // Ordered station UUID's for user favorites

}

func Load

func Load() (Value, error)

func (*Value) DeleteFavorite added in v0.3.1

func (v *Value) DeleteFavorite(uuid string) bool

func (*Value) InsertFavorite added in v0.3.1

func (v *Value) InsertFavorite(uuid string, idx int) bool

func (*Value) IsFavorite

func (v *Value) IsFavorite(uuid string) bool

func (*Value) ToggleFavorite

func (v *Value) ToggleFavorite(uuid string) bool

Jump to

Keyboard shortcuts

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