Skip to content
Golang library to represent money value.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
.gitignore
Gopkg.lock
Gopkg.toml
README.md
currency.go
currency_test.go
money.go
money_test.go
philosophy.md
serializablemoney.go
serializablemoney_test.go

README.md

WizTools.org Money Lib

This is a golang library for representing money value in a golang application.

Setup

The library depends on a JSON configuration file that is available in this repository conf/currency.json. Any application that depends on this library must have this configuration in the same path.

Foundation

The library is written on the foundation of NOD, or Number Of Decimals, for each currency. For example, for USD, 100 cents make a dollar, and hence the NOD is 2. But JPY does not have the concept of a cent, meaning the NOD for that currency is 0.

Usage

We encourage you to look at the test cases in the code for examples.

You can’t perform that action at this time.