calendar

package
v0.0.0-...-548ec3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2022 License: Unlicense Imports: 4 Imported by: 0

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

type CalendarWidget struct {
	Layout *tview.Grid
	// contains filtered or unexported fields
}

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.

type DateInfo

type DateInfo struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳