Postgresql helper code for golang.
Use this to handle the money type on postgresql. I cannot guarantee that there will be no errors in calculations, though I have tried to include a few test cases.
go get github.com/saward/pq/money
For detailed documentation, please see the package documentation at http://godoc.org/github.com/saward/pq/money.