您需要通过以大写字母开头的字段名称来导出字段。
type AN_Track_Log struct { Id bson.ObjectId `bson:"_id,omitempty"` User_session_id_str string `bson:"user_session_id_str"` Googleanaly_pixel_id_str string `bson:"googleanaly_pixel_id_str"` ...}
您需要通过以大写字母开头的字段名称来导出字段。
type AN_Track_Log struct { Id bson.ObjectId `bson:"_id,omitempty"` User_session_id_str string `bson:"user_session_id_str"` Googleanaly_pixel_id_str string `bson:"googleanaly_pixel_id_str"` ...}