payee
typepayee is a single share holder inside a group.
Value
v1.payee
group
typegroup is one payment-splitting arrangement. It carries no id field: the id belongs to the store, which hands it back on lookup and iteration.
Value
v1.group
groups
*v0.Store- OID
- 0a6a3e…fc66:4
groups details
errEmpty
*errors.errorString- OID
- 0a6a3e…fc66:8
errEmpty details
Register
func(payees string, shares string) intRegister creates a new group from comma-separated payees and shares. payees: "g1abc...,g1def..." (addresses) shares: "3,1" (positive integers, same count as payees) Returns the new group id. Panics on malformed input.
- OID
- 0a6a3e…fc66:10
Register details
RecordIncome
func(id int, amount int)RecordIncome adds amount to the pool of group id. amount must be positive.
- OID
- 0a6a3e…fc66:12
RecordIncome details
Render
func(path string) stringRender shows all groups, their payees, shares, and computed owed amounts.
- OID
- 0a6a3e…fc66:13
Render details
splitTrim
func(s string) []stringsplitTrim splits on commas and trims whitespace around each element.
- OID
- 0a6a3e…fc66:14
splitTrim details
payee
:
type
=v1.payee
group
:
type
=v1.group