mcc

package module
v0.0.0-...-8a24b3b Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 2 Imported by: 0

README

MCC Categorizer

A lightweight Go framework for categorizing Merchant Category Codes (MCC) into human-readable English categories.

Features

  • Simple and efficient MCC code categorization
  • Comprehensive coverage of standard MCC codes from ISO 18245 standard database
  • Easy-to-use API
  • Well-documented code
  • MIT licensed

Installation

go get github.com/maximbilan/mcc

Usage

package main

import (
    "fmt"
    "github.com/maximbilan/mcc"
)

func main() {
    // Get category for a specific MCC code
    category, err := mcc.GetCategory("0742") // Veterinary Services
    if err != nil {
        fmt.Printf("Error: %v\n", err)
        return
    }
    fmt.Println(category)
}

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllCategories

func GetAllCategories() map[string]Category

Returns a map of all available MCC codes and their descriptions

func GetCategory

func GetCategory(code string) (string, error)

Returns the category description for a given MCC code

Types

type Category

type Category struct {
	Code        string
	Description string
}

Category represents a merchant category with its code and description

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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