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

utils Package has been Deprecated #6

Closed rudolphjacksonm closed 5 years ago

rudolphjacksonm commented 5 years ago

The utils package within go-autorest has been removed as of version 12.0.0. It was marked as deprecated in version 10.4.0. Since this has been removed this code no longer works unless the init function is removed from main.go:

func init() {
    database = utils.GetEnvVarOrExit("AZURE_DATABASE")
    password = utils.GetEnvVarOrExit("AZURE_DATABASE_PASSWORD")
}