Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorDataExisted = "E11000" // 数据已存在 ErrorDataIsEmpty = "mongo: no documents in result" // 没有查询到数据 )
Variables ¶
This section is empty.
Functions ¶
func IndexExisted ¶
func IndexExisted(coll *mongo.Collection, index string) bool
IndexExisted 检查索引是否存在
Types ¶
Click to show internal directories.
Click to hide internal directories.