config

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config implements configuration for keeper.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(c *Config, r io.Reader) error

Types

type Account

type Account struct {
	// Prefix for matching cash accounts.
	CashPrefix []string `toml:"cash_prefix"`
}

func (*Account) IsAssets

func (*Account) IsAssets(a journal.Account) bool

func (*Account) IsCash

func (c *Account) IsCash(a journal.Account) bool

func (*Account) IsEquity

func (*Account) IsEquity(a journal.Account) bool

func (*Account) IsExpenses

func (*Account) IsExpenses(a journal.Account) bool

func (*Account) IsIncome

func (*Account) IsIncome(a journal.Account) bool

func (*Account) IsLiabilities

func (*Account) IsLiabilities(a journal.Account) bool

func (*Account) IsTrading

func (*Account) IsTrading(a journal.Account) bool

type Config

type Config struct {
	Account `toml:"account"`
}

Jump to

Keyboard shortcuts

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