Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rules.go')
-rw-r--r--rules.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules.go b/rules.go
index 4a9ff4cf..ef956287 100644
--- a/rules.go
+++ b/rules.go
@@ -76,6 +76,11 @@ type Translator interface {
// returned as a []byte just in case the caller wishes to add more and can help
// avoid allocations; otherwise just cast as string.
FmtCurrency(num float64, v uint64, currency currency.Type) []byte
+
+ // returns the currency representation of 'num' with digits/precision of 'v' for locale
+ // in accounting notation. returned as a []byte just in case the caller wishes to add more and can help
+ // avoid allocations; otherwise just cast as string.
+ FmtAccounting(num float64, v uint64, currency currency.Type) []byte
}
// String returns the string value of PluralRule