when saving to mongodb with mongo go driver, the decimal.Big is created with an empty context only.
Maybe you don't want this dependency, but how can serialize this?
As a workaround I'm saving as Float64 and converting to decimal.Big when performing operations, but is not the most eloquent way for me.
when saving to mongodb with mongo go driver, the decimal.Big is created with an empty context only.
Maybe you don't want this dependency, but how can serialize this?
As a workaround I'm saving as Float64 and converting to decimal.Big when performing operations, but is not the most eloquent way for me.