Imports go.mongodb.org/mongo-driver/bson go.mongodb.org/mongo-driver/bson/primitive github.com/olivere/elastic go.mongodb.org/mongo-driver/mongo/options go.mongodb.org/mongo-driver/mongo Standard library imports context encoding/json fmt io/ioutil log os runtime sync time