Documentation ¶
Index ¶
- Constants
- func ParseCSV(r io.Reader) ([][]string, error)
- type Error
- type Hledger
- func (h Hledger) Accounts(options Options) (io.Reader, error)
- func (h Hledger) Assets(options Options) (io.Reader, error)
- func (h Hledger) Balance(options Options) (io.Reader, error)
- func (h Hledger) BalanceSheet(options Options) (io.Reader, error)
- func (h Hledger) Expenses(options Options) (io.Reader, error)
- func (h Hledger) IncomeStatement(options Options) (io.Reader, error)
- func (h Hledger) Liabilities(options Options) (io.Reader, error)
- func (h Hledger) Register(options Options) (io.Reader, error)
- func (h Hledger) Revenue(options Options) (io.Reader, error)
- type LayoutType
- type Options
- func (o Options) Build() []string
- func (o Options) WithAccount(account string) Options
- func (o Options) WithAccountDepth(depth int) Options
- func (o Options) WithAccountDrop(drop int) Options
- func (o Options) WithAccountType(accountType string) Options
- func (o Options) WithAverage() Options
- func (o Options) WithDescription(description string) Options
- func (o Options) WithEndDate(endDate string) Options
- func (o Options) WithInvertAmount() Options
- func (o Options) WithLayout(layout LayoutType) Options
- func (o Options) WithOutputCSV() Options
- func (o Options) WithPeriod(period PeriodType) Options
- func (o Options) WithPretty() Options
- func (o Options) WithSortAmount() Options
- func (o Options) WithStartDate(startDate string) Options
- func (o Options) WithTree() Options
- type PeriodType
Constants ¶
View Source
const ( LayoutBare LayoutType = "bare" PeriodDaily PeriodType = "--daily" PeriodWeekly PeriodType = "--weekly" PeriodMonthly PeriodType = "--monthly" PeriodQuarterly PeriodType = "--quarterly" PeriodYearly PeriodType = "--yearly" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hledger ¶
type Hledger struct {
// contains filtered or unexported fields
}
func (Hledger) IncomeStatement ¶
type LayoutType ¶
type LayoutType string
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions() Options
func (Options) WithAccount ¶
func (Options) WithAccountDepth ¶
func (Options) WithAccountDrop ¶
func (Options) WithAccountType ¶
func (Options) WithAverage ¶
func (Options) WithDescription ¶
func (Options) WithEndDate ¶
func (Options) WithInvertAmount ¶
func (Options) WithLayout ¶
func (o Options) WithLayout(layout LayoutType) Options
func (Options) WithOutputCSV ¶
func (Options) WithPeriod ¶
func (o Options) WithPeriod(period PeriodType) Options
func (Options) WithPretty ¶
func (Options) WithSortAmount ¶
func (Options) WithStartDate ¶
type PeriodType ¶
type PeriodType string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.