会计-golang的货币和货币格式 会计是用于货币和货币格式设置的库。 (受启发) 快速开始 go get github.com/leekchan/accounting example.go package main import ( "fmt" "math/big" "github.com/shopspring/decimal" "github.com/leekchan/accounting" ) func main () { ac := accounting. Accounting { Symbol : "$" , Precision : 2 } fmt . Println ( ac . FormatMoney ( 123456789.213123 )) // "$123,456,789.2