options

package
v0.0.0-...-40e63e7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Database          = "database"
	Center            = "center"
	ColumnsAlbums     = "columns.albums"
	ColumnsPlaylists  = "columns.playlists"
	ColumnsTracklists = "columns.tracklists"
	Device            = "device"
	ExpandColumns     = "expandcolumns"
	FullHeaderColumns = "fullheadercolumns"
	Limit             = "limit"
	LogFile           = "logfile"
	LogOverwrite      = "logoverwrite"
	PollInterval      = "pollinterval"
	SearchDelay       = "searchdelay"
	SortAlbums        = "sort.albums"
	SortPlaylists     = "sort.playlists"
	SortSearch        = "sort.search"
	SortTracklists    = "sort.tracklists"
	SpotifyAuthServer = "spotifyauthserver"
	Topbar            = "topbar"
)

Option names.

View Source
const Defaults string = `` /* 4774-byte string literal not displayed */

Default configuration file.

Variables

View Source
var (
	Get       = v.Get
	GetString = v.GetString
	GetInt    = v.GetInt
	GetBool   = v.GetBool
	Set       = v.Set
	AllKeys   = v.AllKeys
)

Methods for getting options from Viper.

Functions

func GetList

func GetList(key string) []string

Split a string option into a comma-delimited list.

func Print

func Print(key string, opt interface{}) string

Return a human-readable representation of an option. This string can be used in a config file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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