func (c *Car) GetDisplay() bool {
    return c.Display
}
GetDisplay returns the Display value.
package car
import (
    "fmt"
    "path"
    "regexp"
    "strings"
    "github.com/jtyr/gbt/pkg/core/utils"
)
type ModelElement struct {
    Bg string
    Fg string
    Fm string
    Text string
}
type Car struct {
    Model map[string]ModelElement
    Display bool
    Sep string
    Wrap bool
    Params map[string]interface{}
}
var Shell = utils.GetEnv("GBT_SHELL", path.Base(utils.GetEnv("SHELL", "bash")))
var forceHigherColors = utils.GetEnvBool("GBT_FORCE_HIGHER_COLORS", true)
var colors = map[string]string {
    "black":          "0",
    "red":            "1",
    "green":          "2",
    "yellow":         "3",
    "blue":           "4",
    "magenta":        "5",
    "cyan":           "6",
    "light_gray":     "7",
    "dark_gray":      "8",
    "light_red":      "9",
    "light_green":   "10",
    "light_yellow":  "11",
    "light_blue":    "12",
    "light_magenta": "13",
    "light_cyan":    "14",
    "white":         "15",
}
var higherColors = map[string]string {
    "black":          "16",
    "red":           "124",
    "green":          "34",
    "yellow":        "100",
    "blue":           "19",
    "magenta":        "90",
    "cyan":           "30",
    "light_gray":    "248",
    "dark_gray":     "240",
    "light_red":     "196",
    "light_green":    "46",
    "light_yellow":  "226",
    "light_blue":     "63",
    "light_magenta": "201",
    "light_cyan":     "51",
    "white":         "231",
}
func (c *Car) SetParamStr(name, value string) {
    if c.Params == nil {
        c.Params = make(map[string]interface{})
    }
    c.Params[name] = value
}
func (c *Car) GetModel() map[string]ModelElement {
    return c.Model
}