Imports go.mongodb.org/mongo-driver/bson go.mongodb.org/mongo-driver/bson/primitive go.mongodb.org/mongo-driver/mongo go.mongodb.org/mongo-driver/mongo/options go.mongodb.org/mongo-driver/mongo/readpref Standard library imports context encoding/json fmt io/ioutil os time