export

package
v0.0.0-...-8710645 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVExporter

type CSVExporter struct{}

func (*CSVExporter) Export

func (exporter *CSVExporter) Export(expenses *group.Expenses, filePath string) error

type ExpenseToExport

type ExpenseToExport struct {
	Date   time.Time
	Amount float64
	Class  string
	Tags   string
}

type ExpensesExporter

type ExpensesExporter interface {
	Export(expenses *group.Expenses, filePath string) error
}

func ExporterFactory

func ExporterFactory(fileExtension string) (ExpensesExporter, error)

type Reporter

type Reporter struct {
	ReportConf config.ReportConf
}

func (*Reporter) Report

func (r *Reporter) Report(expenses *group.Expenses) string

type XLSXExporter

type XLSXExporter struct{}

func (*XLSXExporter) Export

func (exporter *XLSXExporter) Export(expenses *group.Expenses, filePath string) error

Jump to

Keyboard shortcuts

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