draw

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Rows  = 7
	Weeks = 53
)

Variables

This section is empty.

Functions

func AllDates

func AllDates(year int) []time.Time

Types

type Grid

type Grid [Rows][Weeks]int

func Text

func Text(text string) Grid

func (Grid) BackgroundDates

func (g Grid) BackgroundDates(year int) []time.Time

func (Grid) Dates

func (g Grid) Dates(year int) []time.Time

func (Grid) Points

func (g Grid) Points() []Point

func (Grid) Render

func (g Grid) Render() string

type Point

type Point struct {
	Week int
	Day  int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL