Registry / utility / rhymond-go-money

rhymond-go-money

JSON →
library1.0.15gogounverified

A Go library for handling monetary values with currency conversion, formatting, and arithmetic operations.

go get github.com/Rhymond/go-money
INSTALL
IMPORT
SIG · RHYMOND-GO-MONEY
R
rhymond-go-money
utilitygov1.0.15
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

money
github.com/Rhymond/go-money

Create a money amount and display it.

package main import ( "fmt" "github.com/Rhymond/go-money" ) func main() { amount, _ := money.NewFromFloat(19.99, "USD") fmt.Println(amount.Display()) }
Debug
Known issues
gotchaCurrency conversion requires external exchange rates; not built-in.
fix
Use a third-party service or library to fetch rates before converting.
affects: >=1.0.0
Upgrade
Version history
1.0.15latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
rhymond-go-money — go get rhymond-go-money · libregistry