Use printf in template

This commit is contained in:
jacob1123 committed 2021-12-02 20:53:05 +00:00
1 parent 696469f6c2
commit a4659c7133
3 files changed
+5 -7

No files matched your search

-5
View File
@@ -44,11 +44,6 @@ func (tx Transaction) GetAmount() float64 {
return amount
}
func (tx Transaction) GetAmountString() string {
amount := tx.GetAmount()
return fmt.Sprintf("%.2f", amount)
}
func (tx Transaction) GetPositive() bool {
amount := tx.GetAmount()
return amount >= 0