util

package
v0.0.0-...-9cff30b Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ISO8601 = "2006-01-02"

Variables

This section is empty.

Functions

func FormatCents

func FormatCents(f float64) string

func FormatDate

func FormatDate(t time.Time) string

func FormatFields

func FormatFields(data [][]string, sep string) string

func FormatTx

func FormatTx(tx pfin.Transaction, sep string) string

func MatchDir

func MatchDir(acc pfin.Account, root string) ([]string, error)

func ParseDir

func ParseDir(acc pfin.Account, root string) ([]pfin.Transaction, error)

Types

type ErrNoMatches

type ErrNoMatches struct {
	// contains filtered or unexported fields
}

func (ErrNoMatches) Error

func (e ErrNoMatches) Error() string

type StringFilter

type StringFilter struct {
	String string
	Map    map[string]bool

	Default bool
}

func (*StringFilter) Filter

func (f *StringFilter) Filter(s string) bool

Filter returns true if s should be filtered out (skipped)

Jump to

Keyboard shortcuts

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