1
0
Fork 0

refactor: move currency to money package and add new type Price, refactor api and use price there too

This commit is contained in:
Vojtěch Mareš 2024-05-05 18:19:56 +02:00
parent 18d1c98b76
commit ef1526a1ac
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
7 changed files with 127 additions and 137 deletions

View file

@ -0,0 +1,13 @@
package money
type Currency string
const (
USD Currency = "USD"
EUR Currency = "EUR"
CZK Currency = "CZK"
)
var (
AllowedCurrencies = []Currency{USD, EUR, CZK}
)