account

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// Excel tab name
	TAB = "expenses"
	// MongoDB database address
	ADDRESS = "mongodb://127.0.0.1:27017"
	// MongoDB database name
	NAME = "expenses"
	// MongoDB collection name
	COLLECT = "transaction"
)

Variables

View Source
var (
	FILTER = []string{""}
	GUI    = false
)

Functions

This section is empty.

Types

type Expense

type Expense struct {
	Path string
	// contains filtered or unexported fields
}

func (*Expense) Export

func (exp *Expense) Export() [][]string

func (*Expense) Init

func (exp *Expense) Init()

func (*Expense) Plot

func (exp *Expense) Plot()

func (*Expense) Print

func (exp *Expense) Print(filter ...string)

func (*Expense) Run

func (exp *Expense) Run()

type Expenses

type Expenses struct {
	Exp []*Expense
	// contains filtered or unexported fields
}

func (*Expenses) Export

func (exps *Expenses) Export() [][]string

func (*Expenses) Init

func (exps *Expenses) Init()

func (*Expenses) Plot

func (exps *Expenses) Plot()

func (*Expenses) Print

func (exps *Expenses) Print(filter ...string)

func (*Expenses) Run

func (exps *Expenses) Run()

type IAccount

type IAccount interface {
	Init()
	Run()
	Plot()
	Print(filter ...string)
	Export() [][]string
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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