Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClockWidget ¶
func NewClockWidget ¶
func NewClockWidget(app *tview.Application) ClockWidget
returns a newly created ClockWidget.
func (*ClockWidget) Run ¶
func (c *ClockWidget) Run()
Runs update() if no error happens, starts a goroutine. First goroutine create a channel, start loopCurrentTime as a goroutine. Listen to the channel for a new value.
func (*ClockWidget) UpdateBorderColor ¶
func (c *ClockWidget) UpdateBorderColor()
Updates border color depending if widget has focus or not.
Click to show internal directories.
Click to hide internal directories.