Documentation
¶
Index ¶
- Variables
- func BodyView(g *gocui.Gui, x, y, maxX, maxY int) error
- func CountryTitleView(g *gocui.Gui, x, y, maxX, maxY int) error
- func FooterView(g *gocui.Gui, x, y, maxX, maxY int) error
- func HeaderView(g *gocui.Gui, x, y, maxX, maxY int) error
- func Layout(g *gocui.Gui) error
- func Random(min, max int) int
- func ShowBodyView(g *gocui.Gui) error
- func ShowCountryView(g *gocui.Gui) error
- func String(c int, str string) string
- func StringFormat(c int, str string, args []string) string
- func StringFormatBoth(fg, bg int, str string, args []string) string
- func StringRandom(str string) string
- func UpdateView(g *gocui.Gui, vn string, s string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Color = &color{
Notice: 219,
Action: 118,
Black: 0,
White: 15,
Red: 160,
Purple: 92,
Logo: 75,
Yellow: 11,
Green: 119,
Menu: 209,
Timestamp: 247,
Header: 57,
QueryHeader: 11,
}
)
View Source
var G *gocui.Gui
View Source
var (
LastUpdatedAt time.Time
)
Functions ¶
func ShowBodyView ¶
func ShowCountryView ¶
func StringFormat ¶
StringFormat returns a color escape string with extra options
func StringFormatBoth ¶
StringFormatBoth fg and bg colors Thanks project komanda-cli
func StringRandom ¶
StringRandom returns a random colored string
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.