display

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorSuccess     = color.New(color.FgGreen).SprintfFunc()
	ColorError       = color.New(color.FgRed).SprintfFunc()
	ColorDate        = color.New(color.FgCyan).SprintfFunc()
	ColorMoney       = color.New(color.FgGreen).SprintfFunc()
	ColorHours       = color.New(color.FgGreen).SprintfFunc()
	ColorIdentifier  = color.New(color.FgYellow).SprintfFunc()
	ColorProject     = color.New(color.FgYellow).SprintfFunc()
	ColorTableHeader = color.New(color.FgHiBlack, color.Underline).SprintfFunc()
	ColorNull        = color.New(color.FgHiBlack).SprintfFunc()
)

Functions

func FormatFloatMinDecimal added in v0.1.5

func FormatFloatMinDecimal(value float64) string

func PrintCombinedLogEntryTable added in v0.2.3

func PrintCombinedLogEntryTable(entries []model.CombinedLogEntry)

func PrintIncomeReportTable added in v0.2.1

func PrintIncomeReportTable(reports []report.MonthIncomeReport)

func PrintInvoicePeriodLogEntryTable

func PrintInvoicePeriodLogEntryTable(byInvoiceDate *orderedmap.OrderedMap[time.Time, []model.LogEntry], invoices []model.Invoice)

func PrintLogEntryTable

func PrintLogEntryTable(entries []model.LogEntry)

func PrintProjectInvoicesTable added in v0.1.5

func PrintProjectInvoicesTable(invoices []model.ProjectInvoice)

func PrintProjects

func PrintProjects(projects []model.Project)

func PrintWeeklyLogEntryTable

func PrintWeeklyLogEntryTable(byWeek *orderedmap.OrderedMap[int64, []model.LogEntry])

func ReadableDate

func ReadableDate(date time.Time) string

func ReadableDateWithoutColor

func ReadableDateWithoutColor(date time.Time) string

func ReadableEmpty

func ReadableEmpty() string

func ReadableHours

func ReadableHours(hours float64) string

func ReadableMoney

func ReadableMoney(value float64) string

func ReadableYearMonth added in v0.2.1

func ReadableYearMonth(date time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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