glaz

package module
v0.0.0-...-81a2bb6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 4 Imported by: 0

README

glaz

This tool helps me keeping track of my gleitende Arbeitszeit (means: flextime) in my Excel time sheets.

It's very easy to install and use (assuming you use the same sheet as I and you store it in the same directory as I):

# install
$ go get github.com/5nord/glaz/cmd/glaz

# check-in
$ glaz in

# check-out
$ glaz out

# get state
$ glaz

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
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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