goledger

package module
v0.0.0-...-8861fe5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

README

Library written in Go to create (h)ledger files

This library consists of two components:

  1. Parsers for various input formats:
    • CSV files created by acqbanking-cli listtrans
    • CSV files of the Landesbank Berlin (Amazon.de Visa card)
    • JSON files of the N26 online banking (you could grab them in the inspector)
  2. Types and Functions to render hledger files.

Currently not public is the functionality to convert from the parser transactions to the hledger transactions, but the rules for that are rather personal anyway.

License

Copyright © 2017 Julian Andres Klode

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Posting

type Posting struct {
	Account    string
	Value      decimal.Decimal
	Currency   string
	AtValue    decimal.Decimal
	AtCurrency string
}

Posting describes a part of a ledger transaction

type Transaction

type Transaction struct {
	Date        time.Time
	ValutaDate  time.Time
	Description string
	Postings    []Posting
}

Transaction represents a transaction in a ledger file

func (*Transaction) Print

func (l *Transaction) Print(w io.Writer)

Print prints the ledger transaction to the writer

Directories

Path Synopsis
Package importer maintains the transaction importer.
Package importer maintains the transaction importer.

Jump to

Keyboard shortcuts

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