Documentation ¶
Index ¶
- Variables
- func ColumnLeft(name string)
- func ColumnRight(name string)
- func ColumnToggle(name string)
- func ColumnsString() string
- func EnabledColumns() (a []string)
- func GetSwitchVal(k string) bool
- func GetVal(k string) string
- func Init()
- func Read() error
- func SetColumns(names []string)
- func Toggle(k string)
- func Update(k, v string)
- func UpdateSwitch(k string, val bool)
- func Write() (path string, err error)
- type Column
- type File
- type Param
- type Switch
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GlobalParams []*Param GlobalSwitches []*Switch GlobalColumns []*Column )
Functions ¶
func ColumnLeft ¶ added in v0.7.4
func ColumnLeft(name string)
ColumnLeft moves the column with given name up one position, if possible
func ColumnRight ¶ added in v0.7.4
func ColumnRight(name string)
ColumnRight moves the column with given name up one position, if possible
func ColumnToggle ¶ added in v0.7.4
func ColumnToggle(name string)
ColumnToggle toggles the enabled status of a given column name
func ColumnsString ¶ added in v0.7.4
func ColumnsString() string
ColumnsString returns an ordered and comma-delimited string of currently enabled Columns
func EnabledColumns ¶ added in v0.7.4
func EnabledColumns() (a []string)
EnabledColumns returns an ordered array of enabled column names
func SetColumns ¶ added in v0.7.4
func SetColumns(names []string)
Set Column order and enabled status from one or more provided Column names
func UpdateSwitch ¶ added in v0.7.1
Types ¶
Click to show internal directories.
Click to hide internal directories.