bean

package module
v0.0.0-...-96ec32d Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Go Bean

Go bean is a beancount tool, aim for:

  • Parse Bean file as a lib
  • Import bills by using the beancount parser

What can go bean do

Install

Usage

Why a new wheel

Contribute

Structure

TODOs

Feature
  • Template import
  • Support confirm or not
  • Show unknown payee for import
Bug or Enhancement
  • Payee detect switch
  • Beanfile Format
  • How to deal with TODO
  • refund

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Name     string
	Currency string
	Children []Account
	Notes    []string
}

type Accounts

type Accounts []Account

Accounts tree accounts TODO:

type Bean

type Bean struct {
	// TODO use Accounts
	Accounts     []Account
	Transactions []Transaction
}

func Count

func Count(f string) (*Bean, error)

func (Bean) AllAccounts

func (b Bean) AllAccounts() Accounts

func (Bean) AllTransactions

func (b Bean) AllTransactions() []Transaction

type Detail

type Detail struct {
	Account  Account
	Number   float64
	Currency string
}

type Transaction

type Transaction struct {
	Payee   string
	Name    string
	Status  tranStatus
	At      time.Time
	Tags    []string
	Details []Detail
}

Directories

Path Synopsis
cmd
chopstick command
pkg

Jump to

Keyboard shortcuts

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