report

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Categories

func Categories(expenses []*expenseDB.Expense) (map[string]Category, []string, int64, int64)

Types

type Category

type Category struct {
	Name     string
	Amount   int64
	Expenses []*expenseDB.Expense
}

type Report

type Report struct {
	Title                 string
	Spending              int64
	Income                int64
	Savings               int64
	StartDate             time.Time
	EndDate               time.Time
	SavingsPercentage     float32
	EarningsPerDay        int64
	AverageSpendingPerDay int64
	Categories            []Category
	Duplicates            []string
	Verbose               bool
}

func Generate

func Generate(startDate, endDate time.Time, expenses []*expenseDB.Expense, reportType string) Report

Jump to

Keyboard shortcuts

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