A CLI command to find duplicate values in a MongoDB collection.
|
|
1 年之前 | |
|---|---|---|
| .gitignore | 1 年之前 | |
| LICENSE | 1 年之前 | |
| Makefile | 1 年之前 | |
| README.md | 1 年之前 | |
| example.env | 1 年之前 | |
| go.mod | 1 年之前 | |
| go.sum | 1 年之前 | |
| main.go | 1 年之前 |
make lint to verify codemakemake installA CLI command to find duplicate values in a MongoDB collection.
.env file based on the example provided
in example.envenvrun command to load environment variables from that file:
go install github.com/fgm/envrun@latest.env. For the first check, configure it for an empty collection
in an empty database:
mongodb://localhost:27017testtestemail$ envrun go run ./docs/osinet/cmd/duplicates$ envrun go run ./docs/osinet/cmd/duplicates -command seeduser1@example.com: 3user2@example.com: 2$ envrun go run ./docs/osinet/cmd/duplicatesLicensed under the Apache 2.0 license.