Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6095125

Browse files
authored
Go-API
1 parent 84c8132 commit 6095125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func main() {
2525
// Conecta ao MongoDB Atlas
2626
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
2727
defer cancel()
28-
clientOptions := options.Client().ApplyURI("mongodb+srv://danielvor:#Duno#[email protected]")
28+
clientOptions := options.Client().ApplyURI("MONGODB_URI")
2929
var err error
3030
client, err = mongo.Connect(ctx, clientOptions)
3131
if err != nil {

0 commit comments

Comments
 (0)