summary

package
v1.42.4-alpha.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderToday

func RenderToday(summary *Summary, statusBarHideCategories bool) (string, error)

RenderToday generates a text representation from summary 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 {
	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