options

package
v0.0.0-...-1be2e0f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE = `options.yaml`
)

Variables

This section is empty.

Functions

func Exists

func Exists(
	key string,
) bool

func Get

func Get(
	key string,
) bool

func Load

func Load()

func Save

func Save()

func Set

func Set(
	key string,
	v bool,
)

func Toggle

func Toggle(
	key string,
) bool

Types

type Option

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

func Create

func Create(
	label string,
	key string,
	on rune,
	on_f func(),
	off rune,
	off_f func(),
	noop bool,
) *Option

func (*Option) Exists

func (self *Option) Exists() bool

func (*Option) Get

func (self *Option) Get() (
	rune,
	bool,
)

func (*Option) GetKey

func (self *Option) GetKey() string

func (*Option) GetLabel

func (self *Option) GetLabel() string

func (*Option) Set

func (self *Option) Set(
	v bool,
) rune

func (*Option) Toggle

func (self *Option) Toggle() (
	rune,
	bool,
)

type Options

type Options struct {
	Options                       []*Option
	Option_Speed                  *Option
	Option_Speed_Unit             *Option
	Option_Mode                   *Option
	Option_Mode_Full              *Option
	Option_Modifier               *Option
	Option_Compass                *Option
	Option_Compass_Algorithm      *Option
	Option_Compass_North          *Option
	Option_Angle                  *Option
	Option_Angle_Moving           *Option
	Option_LatLong                *Option
	Option_LatLong_Moving         *Option
	Option_Center_Position        *Option
	Option_Center_Position_Moving *Option
	Option_Alert                  *Option
	Option_Version                *Option
	Option_Plugin                 *Option
	Option_Plugin_Offline         *Option
	Option_Server                 *Option
	Option_Quit                   *Option
}
var (
	OPTIONS *Options
)

Jump to

Keyboard shortcuts

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