Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoClient = Connect()
数据库客户端
Functions ¶
func Connect ¶
数据库连接 https://www.mongodb.com/blog/post/quick-start-golang--mongodb--starting-and-setup
func GetCollection ¶
func GetCollection(client *mongo.Client, collectionName string) *mongo.Collection
获取数据库集合
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.