Reflect prices as currency #28

Open
opened 2021-06-22 23:29:07 +00:00 by davidlick · 0 comments
davidlick commented 2021-06-22 23:29:07 +00:00 (Migrated from github.com)

Prices currently have the schema {"amount":100,"currency":"USD"}. This is a package implementation and should be abstracted from the user.

Build a parser which accepts currency as $1.00 or £1.00 and builds a money.Money struct for go-money.

Prices currently have the schema `{"amount":100,"currency":"USD"}`. This is a package implementation and should be abstracted from the user. Build a parser which accepts currency as `$1.00` or `£1.00` and builds a `money.Money` struct for `go-money`.
Sign in to join this conversation.