It is a simple library to load MongoDB data from files generated by mongoexport utility into your database
for testing reasons or whatever reason you'd like.
Package gomongofixtures contains methods for loading MongoDB data from files
generated by mongoexport utility into your database for testing reasons or whatever reason you'd like.
Load loads the given fixture into a database with the given URI using Loader.
Each time it creates new Loader and new connection to the database.
It uses file name in the path of the fixture as a collection name.
type Loader struct {
URI string// URI of MongoDB. Path string// Path to fixture file. DB string// Database name to load fixture. Col string// Collection to load fixture.}