Imports go.mongodb.org/mongo-driver/bson 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 log net/http net/http/cookiejar net/url strconv time