options

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Filename for config file
	Filename = "autosr"
	// Format for config file
	Format = "toml"
)

Variables

View Source
var ConfigPath string

ConfigPath is the path where track list and config file are kept

View Source
var EventHooks = []string{
	"begin-snipe",
	"begin-save",
	"end-save",
	"reload",
}

EventHooks contains the names of valid event hooks

Functions

func AreValid

func AreValid() (ok bool, err error)

AreValid is true if the options are valid

func Get

func Get(k string) string

Get an option

func GetDuration

func GetDuration(k string) time.Duration

GetDuration option

Types

This section is empty.

Jump to

Keyboard shortcuts

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