qmgo icon indicating copy to clipboard operation
qmgo copied to clipboard

Automatically fills Go default values

Open jiangz222 opened this issue 5 years ago • 3 comments
trafficstars

If insert document with field of slice type without initialization, filed will be null in MongoDB, which may cause operation error(e.g. $push to null error). Qmgo can initial fields to default value as mgo does. We can Implement this in package field.

jiangz222 avatar Oct 21 '20 08:10 jiangz222

excuse me, can you tell me how to use it?

lifegit avatar Jun 07 '21 15:06 lifegit

install slice is null, hope []

lifegit avatar Jun 07 '21 15:06 lifegit

@jiangz222 worry... thanks !

lifegit avatar Jun 07 '21 16:06 lifegit