Documentation
¶
Index ¶
Constants ¶
View Source
const ( Monday = iota + 1 Tuesday Wednesday Thursday Friday Saturday Sunday )
Go time library start sunday as 1 so had to change that.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalendarWidget ¶
func NewCalendarWidget ¶
func NewCalendarWidget(app *tview.Application) CalendarWidget
Returns a newly created CalendarWidget.
func (*CalendarWidget) Run ¶
func (c *CalendarWidget) Run()
Runs update() and starts a goroutine. First goroutine create a channel, start loopCurrentDay as a goroutine. Listen to the channel for a new value.
func (*CalendarWidget) UpdateBorderColor ¶
func (c *CalendarWidget) UpdateBorderColor()
Updates border color depending if widget has focus or not.
Click to show internal directories.
Click to hide internal directories.