add formating ribuan keuangan + alert salah login
This commit is contained in:
12
utils/formatRibuan.utils.go
Normal file
12
utils/formatRibuan.utils.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"golang.org/x/text/language"
|
||||
"golang.org/x/text/message"
|
||||
)
|
||||
|
||||
func FormatRibuan(amount int) string {
|
||||
p := message.NewPrinter(language.Indonesian)
|
||||
formated := p.Sprintf("%v", amount)
|
||||
return formated
|
||||
}
|
||||
Reference in New Issue
Block a user