Azure-Samples / azure-cosmos-db-mongodb-golang-getting-started

This sample shows you how to use the Azure Cosmos DB for MongoDB API and Go language (Golang) to create, retrieve, update, and delete a document in a collection.
MIT License
13 stars 13 forks source link

Updated the sample to use the community-supported mgo driver #5

Open jflam opened 5 years ago

jflam commented 5 years ago
  1. I updated the dependencies and verified that they work.
  2. I removed the unnecessary dependency on the go-autorest package.
  3. I updated the README to be clearer on the instructions.

Note that the documentation is still inaccurate because it refers to the older package. Also, you shouldn't explicitly go get specific packages as you show in the docs, just rely on go get to get the right dependencies by analyzing the imports.

Feel free to cherry pick just the first commit if you want. I just don't like unnecessary dependencies just to get a single utility function.