Documentation
¶
Index ¶
- Variables
- func DefaultCurrency() string
- func EnsureLogFilePath() (string, error)
- func GetConfigDir() string
- func GetConfigPath() string
- func GetDBPath() string
- func GetJournalPath() string
- func GetSchema() any
- func GetSheetDir() string
- func LoadConfig(content []byte, cp string) error
- func LoadConfigFile(path string)
- func SaveConfig(content []byte) error
- func SaveConfigObject(config Config) error
- func TimeZone() *time.Location
- type Account
- type AllocationTarget
- type BoolType
- type Budget
- type Commodity
- type CommodityType
- type Config
- type CreditCard
- type Goals
- type ImportTemplate
- type Price
- type RetirementGoal
- type SavingsGoal
- type ScheduleAL
- type TaxCategoryType
- type UserAccount
Constants ¶
This section is empty.
Variables ¶
View Source
var SchemaJson string
Functions ¶
func DefaultCurrency ¶
func DefaultCurrency() string
func EnsureLogFilePath ¶ added in v0.5.1
func GetConfigDir ¶ added in v0.5.0
func GetConfigDir() string
func GetConfigPath ¶ added in v0.5.0
func GetConfigPath() string
func GetJournalPath ¶ added in v0.5.3
func GetJournalPath() string
func GetSheetDir ¶ added in v0.6.3
func GetSheetDir() string
func LoadConfig ¶ added in v0.4.1
func LoadConfigFile ¶ added in v0.5.0
func LoadConfigFile(path string)
func SaveConfig ¶ added in v0.5.0
func SaveConfigObject ¶ added in v0.5.3
Types ¶
type AllocationTarget ¶ added in v0.4.1
type Budget ¶ added in v0.5.6
type Budget struct {
Rollover BoolType `json:"rollover" yaml:"rollover"`
}
type Commodity ¶ added in v0.4.1
type Commodity struct { Name string `json:"name" yaml:"name"` Type CommodityType `json:"type" yaml:"type"` Price Price `json:"price" yaml:"price"` Harvest int `json:"harvest" yaml:"harvest"` TaxCategory TaxCategoryType `json:"tax_category" yaml:"tax_category"` }
type CommodityType ¶ added in v0.4.1
type CommodityType string
const ( MutualFund CommodityType = "mutualfund" NPS CommodityType = "nps" Stock CommodityType = "stock" Metal CommodityType = "metal" Unknown CommodityType = "unknown" )
type Config ¶
type Config struct { JournalPath string `json:"journal_path" yaml:"journal_path"` DBPath string `json:"db_path" yaml:"db_path"` SheetsDirectory string `json:"sheets_directory" yaml:"sheets_directory"` Readonly bool `json:"readonly" yaml:"readonly"` LedgerCli string `json:"ledger_cli" yaml:"ledger_cli"` DefaultCurrency string `json:"default_currency" yaml:"default_currency"` DisplayPrecision int `json:"display_precision" yaml:"display_precision"` AmountAlignmentColumn int `json:"amount_alignment_column" yaml:"amount_alignment_column"` Locale string `json:"locale" yaml:"locale"` TimeZone string `json:"time_zone" yaml:"time_zone"` FinancialYearStartingMonth time.Month `json:"financial_year_starting_month" yaml:"financial_year_starting_month"` WeekStartingDay time.Weekday `json:"week_starting_day" yaml:"week_starting_day"` Strict BoolType `json:"strict" yaml:"strict"` Budget Budget `json:"budget" yaml:"budget"` ScheduleALs []ScheduleAL `json:"schedule_al" yaml:"schedule_al"` AllocationTargets []AllocationTarget `json:"allocation_targets" yaml:"allocation_targets"` Commodities []Commodity `json:"commodities" yaml:"commodities"` ImportTemplates []ImportTemplate `json:"import_templates" yaml:"import_templates"` Accounts []Account `json:"accounts" yaml:"accounts"` Goals Goals `json:"goals" yaml:"goals"` UserAccounts []UserAccount `json:"user_accounts" yaml:"user_accounts"` CreditCards []CreditCard `json:"credit_cards" yaml:"credit_cards"` }
type CreditCard ¶ added in v0.6.5
type CreditCard struct { Account string `json:"account" yaml:"account"` CreditLimit int `json:"credit_limit" yaml:"credit_limit"` StatementEndDay int `json:"statement_end_day" yaml:"statement_end_day"` DueDay int `json:"due_day" yaml:"due_day"` Network string `json:"network" yaml:"network"` Number string `json:"number" yaml:"number"` ExpirationDate string `json:"expiration_date" yaml:"expiration_date"` }
type Goals ¶ added in v0.5.7
type Goals struct { Retirement []RetirementGoal `json:"retirement" yaml:"retirement"` Savings []SavingsGoal `json:"savings" yaml:"savings"` }
type ImportTemplate ¶ added in v0.5.3
type RetirementGoal ¶ added in v0.5.7
type RetirementGoal struct { Name string `json:"name" yaml:"name"` Icon string `json:"icon" yaml:"icon"` SWR float64 `json:"swr" yaml:"swr"` Expenses []string `json:"expenses" yaml:"expenses"` Savings []string `json:"savings" yaml:"savings"` YearlyExpenses float64 `json:"yearly_expenses" yaml:"yearly_expenses"` Priority int `json:"priority" yaml:"priority"` }
type SavingsGoal ¶ added in v0.5.7
type SavingsGoal struct { Name string `json:"name" yaml:"name"` Icon string `json:"icon" yaml:"icon"` Target float64 `json:"target" yaml:"target"` TargetDate string `json:"target_date" yaml:"target_date"` Rate float64 `json:"rate" yaml:"rate"` PaymentPerPeriod float64 `json:"payment_per_period" yaml:"payment_per_period"` Accounts []string `json:"accounts" yaml:"accounts"` Priority int `json:"priority" yaml:"priority"` }
type ScheduleAL ¶ added in v0.4.1
type TaxCategoryType ¶ added in v0.4.1
type TaxCategoryType string
const ( Debt TaxCategoryType = "debt" Equity TaxCategoryType = "equity" Equity65 TaxCategoryType = "equity65" Equity35 TaxCategoryType = "equity35" UnlistedEquity TaxCategoryType = "unlisted_equity" )
type UserAccount ¶ added in v0.6.1
Click to show internal directories.
Click to hide internal directories.