Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84c8132 commit 6095125Copy full SHA for 6095125
main.go
@@ -25,7 +25,7 @@ func main() {
25
// Conecta ao MongoDB Atlas
26
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
27
defer cancel()
28
- clientOptions := options.Client().ApplyURI("mongodb+srv://danielvor:#Duno#[email protected]")
+ clientOptions := options.Client().ApplyURI("MONGODB_URI")
29
var err error
30
client, err = mongo.Connect(ctx, clientOptions)
31
if err != nil {
0 commit comments