currency:Go的货币处理

时间:2021-03-19 17:51:07
【文件属性】:
文件名称:currency:Go的货币处理
文件大小:31KB
文件格式:ZIP
更新时间:2021-03-19 17:51:07
Go 货币 处理货币金额,提供货币信息和格式。 由CLDR v38提供支持,仅约30kb的数据。 背景: ://bojanz.github.io/price-currency-handling-go/ 特征 所有货币代码,其数字代码和小数位数。 所有语言环境的货币符号和格式。 具有值语义的数量结构(福勒的钱模式) 格式化程序,用于格式化金额和解析格式化的金额。 amount , _ := currency . NewAmount ( "275.98" , "EUR" ) total , _ := amount . Mul ( "4" ) locale := currency . NewLocale ( "fr" ) formatter := currency . NewFormatter ( locale ) fmt . Println ( form
【文件预览】:
currency-master
----go.mod(174B)
----locale_test.go(4KB)
----.travis.yml(198B)
----currency.go(2KB)
----amount_test.go(17KB)
----formatter.go(8KB)
----LICENSE(1KB)
----gen.go(22KB)
----locale.go(2KB)
----go.sum(575B)
----example_test.go(4KB)
----README.md(3KB)
----data.go(29KB)
----currency_test.go(3KB)
----amount.go(8KB)
----formatter_test.go(11KB)

网友评论