merchant

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package merchant reduces the description a bank writes for a payment to the words that identify who was paid, so "NETFLIX.COM 866-579-7172 CA", "Netflix.com Amsterdam" and a subscription called "Netflix" compare equal. The importer uses it to group transactions; the app uses it to match a statement with the charges it expects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key(text string) string

Key reduces a bank description (or a subscription name) to at most two lowercase words that identify the merchant. It is "" when nothing is left.

func Name

func Name(key string) string

Name writes a key as a name: "netflix" becomes "Netflix".

func Same

func Same(a, b string) bool

Same reports whether two keys name the same merchant: the same first word ("spotify" and "spotify premium"), or one written together is the start of the other ("disney" and "disneyplus"), with at least four letters in common so short words do not match by chance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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