report

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatLedger

func FormatLedger(no int, l Ledger) string

FormatLedger formats the given ledger as a string with the given number.

Types

type Account

type Account struct {
	ID      Identifier
	Number  string
	Balance int64
	Ledgers []Ledger
}

Account an Account representation.

type Identifier

type Identifier = fmt.Stringer

Identifier an object identifier.

type Ledger

type Ledger struct {
	Action  string
	Amount  int64
	Balance int64
}

Ledger is an account ledger.

Jump to

Keyboard shortcuts

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