# Rhymond/go-money

Go implementation of Fowler's Money pattern

Repository: https://github.com/Rhymond/go-money
Canonical: https://ross.abutalabs.com/products/go-money
Language: Go
License: MIT
License Family: permissive
Topics: fowler-money-pattern, currency, money, money-library, formatter
Last push: 2026-04-29T05:30:08+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 79, release rhythm 8, longevity 100
- inputs: {"age_days": 3453, "days_push": 126, "days_rel": 490, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1911, forks 162 (observed 2026-08-28T04:05:53.269844+00:00)

## What it is
A Go library implementing Fowler's Money pattern for precise monetary value handling using currency smallest units (integer cents). It provides arithmetic, comparison, rounding, splitting, and allocation operations that avoid floating-point rounding errors.

## Use cases
- store monetary values without floating point errors
- split an invoice amount across parties
- compare money amounts in the same currency
- format and display currency values
- allocate payments or fees precisely

## When to choose
- you are building financial, billing, or e-commerce logic in Go
- you need exact integer-based money arithmetic with ISO 4217 currencies
- you need to split or allocate amounts without losing cents

## When to avoid
- you need currency exchange or conversion rates (not provided)
- your project is not in Go
- you only need simple display formatting without arithmetic

## Facets
- artifact type: library
- maturity: stable
- function: serialization, math, formatter
- domain: fintech, developer-tools, e-commerce
- platform: go, cross-platform
- tags: money-pattern, currency, iso-4217, monetary-arithmetic, no-floats

## Member repositories
- Rhymond/go-money (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:53.269844+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:10:46.645294+00:00, confidence not recorded.
  - readme: https://github.com/Rhymond/go-money (fetched 2026-08-28T04:05:53.269844+00:00, sha 8b9ba10ee545)
- Data as of 2026-08-30T08:39:29.467469+00:00.
