glaz

package
v0.0.0-...-387b996 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cell

func Cell(t time.Time, f Column) string

func Row

func Row(t time.Time) int

Types

type Column

type Column string

type Day

type Day struct {
	Work  Span
	Pause Span
	// contains filtered or unexported fields
}

func (Day) String

func (d Day) String() string

type Sheet

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

func OpenFile

func OpenFile(file string) (*Sheet, error)

func (*Sheet) Day

func (s *Sheet) Day(t time.Time) Day

func (*Sheet) Err

func (s *Sheet) Err() error

func (*Sheet) Today

func (s *Sheet) Today() Day

func (*Sheet) Update

func (s *Sheet) Update(day Day) error

func (*Sheet) Worksheet

func (s *Sheet) Worksheet(t time.Time) string

type Span

type Span struct {
	Begin, End time.Time
}

Jump to

Keyboard shortcuts

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