Registry / utility / leekchan-accounting

leekchan-accounting

JSON →
library1.0.0gogounverified

A Go library for formatting monetary values and accounting numbers.

go get github.com/leekchan/accounting
INSTALL
IMPORT
SIG · LEEKCHAN-ACCOUNTIN
L
leekchan-accounting
utilitygov1.0.0
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.

accounting
github.com/leekchan/accounting

Formats a number as currency with a dollar sign and two decimal places.

package main import ( "fmt" "github.com/leekchan/accounting" ) func main() { ac := accounting.Accounting{Symbol: "$", Precision: 2} fmt.Println(ac.FormatMoney(1234567.89)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
leekchan-accounting — go get leekchan-accounting · libregistry