Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckEnvVariables ¶
func CheckEnvVariables() error
Types ¶
type Report ¶ added in v1.7.0
type Report struct { TimeEntries []TimeEntry // contains filtered or unexported fields }
type Stats ¶ added in v1.7.0
func (*Stats) PercentageForTag ¶ added in v1.7.0
Returns percentage for total hours.
The hard part is to calculate percentage values so that the summed up percentages are not higher than 100%. See for example https://revs.runtime-revolution.com/getting-100-with-rounded-percentages-273ffa70252b Let's go with a simple solution that can calculate sum(percentages) > 100%.
func (*Stats) TotalHours ¶ added in v1.7.0
type TextFormatter ¶ added in v1.6.0
type TextFormatter struct {
Stats *Stats
}
func NewTextFormatter ¶ added in v1.6.0
func NewTextFormatter(stats *Stats) *TextFormatter
func (*TextFormatter) Output ¶ added in v1.6.0
func (f *TextFormatter) Output()
Click to show internal directories.
Click to hide internal directories.