package
0.0.0-20231205094324-6f9dc6eabeef
Repository: https://github.com/lwzphper/go-mall.git
Documentation: pkg.go.dev
# Functions
NewClient 连接 docker MongoDB 客户端(测试执行完会清空数据).
NewDefaultClient 连接本地 MongoDB 客户端,可以查看测试时的数据是否正确.
RunWithMongoInDocker 在 docker 容器中运行 MongoDB.
SetupIndexes sets up indexes for the given database.