UnmarshalBSON and MarshalBSON serialization
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.
Could you elaborate a little bit more?
I think he means that when saving a decimal.Big in mongodb this is the result that is written into the db.
I'm too wondering if it would make if this library would support marshaling into (I guess) a Decimal128 as supported by mongodb.
https://github.com/mongodb/mongo-go-driver/blob/master/bson/primitive/decimal.go