Ejemplo n.º 1
0
func dbinit(obj types.Object) {
	obj.SetId(bson.NewObjectId())
	datastore.Set(obj)
	commitObject(obj.GetId())
}