Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareDataForBSONStorage ¶
PrepareDataForBSONStorage takes the given value and converts it to the type expected by the MongoDB driver for inserting documents. The value must be a struct with exported fields and proper json tags or a map. To use the MongoDB primary key (_id), you must have an _id field in either the struct or map. Alternatively, add it to the map returned by this function. If no _id field is set, then MongoDB will generate one for you.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.