From d6e30494ed753c634a702acb2174a0550bbb6342 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 21 May 2017 15:46:51 +0200 Subject: DefautlFormat --- format.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/format.go b/format.go index 77f5457..3a4f21b 100644 --- a/format.go +++ b/format.go @@ -52,6 +52,8 @@ var ( CN = Country{Comma, FullStop, 4, 2} ) +var DefaultFormat = FR + func (c Country) Format(v float64) string { s := strconv.FormatFloat(v, 'f', -1, 64) neg := strings.HasPrefix(s, "-") @@ -72,5 +74,5 @@ func (c Country) Format(v float64) string { } func Format(v float64) string { - return FR.Format(v) + return DefaultFormat.Format(v) } -- cgit v1.2.3