From 0343a8e79a0b9ce22b2b43cd7935684865167adb Mon Sep 17 00:00:00 2001 From: Joshua Cave Date: Tue, 26 Feb 2019 17:39:21 +1300 Subject: [PATCH] fix --- helpers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helpers.go b/helpers.go index 69959d8..2b2ea7b 100644 --- a/helpers.go +++ b/helpers.go @@ -153,3 +153,7 @@ func TimeInLoc(t time.Time, loc string) (time.Time, error) { } return t.In(l), nil } + +func FormatMoney(dec float64) string { + return "$" + strconv.FormatFloat(ToFixed(dec, 2), 'f', 2, 64) +}