The example in https://www.mongodb.com/docs/drivers/go/current/quick-start/ depends on github.com/joho/godotenv … the user should be instructed to go get it along with the driver.
github.com/joho/godotenv
go get