Documentation ¶
Index ¶
- func BTreeDescendFirstLessOrEqual[I btree.Item](tree *btree.BTree, item I) I
- func BTreeToSlice[I btree.Item](tree *btree.BTree) []I
- func BeginningOfFinancialYear(date time.Time) time.Time
- func BeginningOfMonth(date time.Time) time.Time
- func EndOfDay(date time.Time) time.Time
- func EndOfFinancialYear(date time.Time) time.Time
- func EndOfMonth(date time.Time) time.Time
- func EndOfToday() time.Time
- func Exec(name string, stdout *bytes.Buffer, stderr *bytes.Buffer, args ...string) error
- func FY(date time.Time) string
- func FYHuman(date time.Time) string
- func FileExists(path string) bool
- func GroupByAccount(posts []posting.Posting) map[string][]posting.Posting
- func GroupByFY[G GroupableByDate](groupables []G) map[string][]G
- func GroupByMonth[G GroupableByDate](groupables []G) map[string][]G
- func IsCheckingAccount(account string) bool
- func IsCurrency(currency string) bool
- func IsExpenseInterestAccount(account string) bool
- func IsSameOrParent(account string, comparison string) bool
- func IsWithDate(date time.Time, start time.Time, end time.Time) bool
- func MaxTime(a time.Time, b time.Time) time.Time
- func Now() time.Time
- func OpenDB() (*gorm.DB, error)
- func SetNow(date string)
- func SortedKeys[K constraints.Ordered, V any](m map[K]V) []K
- func SumBy[C any](collection []C, iteratee func(item C) decimal.Decimal) decimal.Decimal
- func UnQuote(str string) string
- type GroupableByDate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginningOfFinancialYear ¶ added in v0.1.3
func EndOfToday ¶ added in v0.5.2
func FileExists ¶ added in v0.5.0
func GroupByAccount ¶ added in v0.4.8
func GroupByFY ¶ added in v0.4.5
func GroupByFY[G GroupableByDate](groupables []G) map[string][]G
func GroupByMonth ¶ added in v0.4.5
func GroupByMonth[G GroupableByDate](groupables []G) map[string][]G
func IsCheckingAccount ¶ added in v0.4.8
func IsCurrency ¶ added in v0.3.7
func IsExpenseInterestAccount ¶ added in v0.5.2
func IsSameOrParent ¶ added in v0.2.4
func IsWithDate ¶ added in v0.1.5
func SortedKeys ¶ added in v0.4.8
func SortedKeys[K constraints.Ordered, V any](m map[K]V) []K
Types ¶
type GroupableByDate ¶ added in v0.4.5
Click to show internal directories.
Click to hide internal directories.