Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beancount ¶ added in v0.5.5
type Beancount struct{}
func (Beancount) ValidateFile ¶ added in v0.5.5
func (Beancount) ValidateFile(journalPath string) ([]LedgerFileError, string, error)
type HLedgerCLI ¶ added in v0.3.6
type HLedgerCLI struct{}
func (HLedgerCLI) Prices ¶ added in v0.3.9
func (HLedgerCLI) Prices(journalPath string) ([]price.Price, error)
func (HLedgerCLI) ValidateFile ¶ added in v0.3.6
func (HLedgerCLI) ValidateFile(journalPath string) ([]LedgerFileError, string, error)
type HLedgerPosting ¶ added in v0.6.4
type HLedgerPosting struct {
Account string `json:"paccount"`
Comment string `json:"pcomment"`
Tags [][]string `json:"ptags"`
Amount []struct {
Commodity string `json:"acommodity"`
Quantity struct {
Value float64 `json:"floatingPoint"`
} `json:"aquantity"`
Price struct {
Contents struct {
Commodity string `json:"acommodity"`
Quantity struct {
Value float64 `json:"floatingPoint"`
} `json:"aquantity"`
} `json:"contents"`
Tag string `json:"tag"`
} `json:"aprice"`
} `json:"pamount"`
}
type HLedgerTransaction ¶ added in v0.6.4
type HLedgerTransaction struct {
Date string `json:"tdate"`
Description string `json:"tdescription"`
ID int64 `json:"tindex"`
Status string `json:"tstatus"`
Comment string `json:"tcomment"`
Tags [][]string `json:"ttags"`
TSourcePos []struct {
SourceColumn uint64 `json:"sourceColumn"`
SourceLine uint64 `json:"sourceLine"`
SourceName string `json:"sourceName"`
} `json:"tsourcepos"`
Postings []HLedgerPosting `json:"tpostings"`
}
type Ledger ¶ added in v0.3.6
type LedgerCLI ¶ added in v0.3.6
type LedgerCLI struct{}
func (LedgerCLI) ValidateFile ¶ added in v0.3.6
func (LedgerCLI) ValidateFile(journalPath string) ([]LedgerFileError, string, error)
type LedgerFileError ¶ added in v0.3.1
type LedgerFileError struct {
FileName string `json:"file_name,omitempty"`
LineFrom uint64 `json:"line_from"`
LineTo uint64 `json:"line_to"`
Error string `json:"error"`
Message string `json:"message"`
}
func (LedgerFileError) String ¶ added in v0.7.7
func (e LedgerFileError) String() string
Click to show internal directories.
Click to hide internal directories.