summary

package
v1.7.2-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderToday

func RenderToday(summaries []Summary) (string, error)

RenderToday generates a text representation from summaries of the current day. Expects exactly one summary for the current day. Will return an error otherwise.

Types

type Category

type Category struct {
	Category string
	Total    string
}

Category represents tracked working time of a specific category.

type Summary

type Summary struct {
	Date       time.Time
	Total      string
	ByCategory []Category
}

Summary represents the tracked working time for a single day.

Jump to

Keyboard shortcuts

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