cfg

package
v0.4.14 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error) bool

func Debug

func Debug(a ...interface{})

func Debugc

func Debugc(fn func() string)

func Debugf

func Debugf(format string, a ...interface{})

func Debugs

func Debugs(a interface{})

func Error

func Error(a ...interface{})

func Errorc

func Errorc(fn func() string)

func Errorf

func Errorf(format string, a ...interface{})

func Errors

func Errors(a interface{})

func Fatal

func Fatal(a ...interface{})

func Fatalc

func Fatalc(fn func() string)

func Fatalf

func Fatalf(format string, a ...interface{})

func Fatals

func Fatals(a interface{})

func Info

func Info(a ...interface{})

func Infoc

func Infoc(fn func() string)

func Infof

func Infof(format string, a ...interface{})

func Infos

func Infos(a interface{})

func Trace

func Trace(a ...interface{})

func Tracec

func Tracec(fn func() string)

func Tracef

func Tracef(format string, a ...interface{})

func Traces

func Traces(a interface{})

func Warn

func Warn(a ...interface{})

func Warnc

func Warnc(fn func() string)

func Warnf

func Warnf(format string, a ...interface{})

func Warns

func Warns(a interface{})

Types

type Config

type Config struct {
	Bools map[string]*p9.Bool
	// contains filtered or unexported fields
}

func New

func New(cx *conte.Xt, th *p9.Theme) *Config

func (*Config) Config

func (c *Config) Config() GroupsMap

func (*Config) Init

func (c *Config) Init() *Config

func (*Config) RenderConfigItem

func (c *Config) RenderConfigItem(item *Item, position int) []l.Widget

RenderConfigItem renders a config item. It takes a position variable which tells it which index it begins on the bigger config widget list, with this and its current data set the multi can insert and delete elements above its add button without rerendering the config item or worse, the whole config widget

func (*Config) RenderFloat

func (c *Config) RenderFloat(item *Item) []l.Widget

func (*Config) RenderInteger

func (c *Config) RenderInteger(item *Item) []l.Widget

func (*Config) RenderMulti

func (c *Config) RenderMulti(item *Item, position int) []l.Widget

func (*Config) RenderPassword

func (c *Config) RenderPassword(item *Item) []l.Widget

func (*Config) RenderRadio

func (c *Config) RenderRadio(item *Item) []l.Widget

func (*Config) RenderString

func (c *Config) RenderString(item *Item) []l.Widget

func (*Config) RenderTime

func (c *Config) RenderTime(item *Item) []l.Widget

func (*Config) RenderToggle

func (c *Config) RenderToggle(item *Item) []l.Widget

type GroupsMap

type GroupsMap map[string]ItemMap

func (GroupsMap) Widget

func (gm GroupsMap) Widget(ng *Config) l.Widget

type Item

type Item struct {
	Slot interface{}
	// contains filtered or unexported fields
}

func (*Item) Item

func (it *Item) Item(ng *Config) l.Widget

type ItemMap

type ItemMap map[string]*Item

type List

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

type ListItem

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

type ListItems

type ListItems []ListItem

func (ListItems) Len

func (l ListItems) Len() int

func (ListItems) Less

func (l ListItems) Less(i, j int) bool

func (ListItems) Swap

func (l ListItems) Swap(i, j int)

type Lists

type Lists []List

func (Lists) Len

func (l Lists) Len() int

func (Lists) Less

func (l Lists) Less(i, j int) bool

func (Lists) Swap

func (l Lists) Swap(i, j int)

Jump to

Keyboard shortcuts

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