Documentation ¶
Index ¶
- Variables
- type Car
- func (c *Car) DecorateElement(element, bg, fg, fm, text string) string
- func (c *Car) Format() string
- func (c *Car) GetColor(name string, isFg bool) (ret string)
- func (c *Car) GetDisplay() bool
- func (c *Car) GetFormat(name string, end bool) (ret string)
- func (c *Car) GetModel() map[string]ModelElement
- func (c *Car) GetSep() string
- func (c *Car) GetWrap() bool
- func (c *Car) SetParamStr(name, value string)
- type ModelElement
Constants ¶
This section is empty.
Variables ¶
Shell type.
Functions ¶
This section is empty.
Types ¶
type Car ¶
type Car struct { Model map[string]ModelElement Display bool Sep string Wrap bool Params map[string]interface{} }
Car is a type defining the model of the car.
func (*Car) DecorateElement ¶
DecorateElement decorates the element text with its colors and formatting.
func (*Car) GetModel ¶
func (c *Car) GetModel() map[string]ModelElement
GetModel returns the Model value.
func (*Car) SetParamStr ¶
SetParamStr sets string value to a parameter.
Click to show internal directories.
Click to hide internal directories.