Skip to content

Commit b737a3f

Browse files
authored
DOCS-15247: Go Quick Start should mention installing godotenv (#95)
1 parent d0bd9c1 commit b737a3f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/quick-start.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ Use ``go get`` to add the Go driver as a dependency.
3939

4040
go get go.mongodb.org/mongo-driver/mongo
4141

42+
Add Other Dependencies
43+
~~~~~~~~~~~~~~~~~~~~~~
44+
45+
Use ``go get`` to add any additional dependencies. This Quick Start
46+
uses the ``godotenv`` package to read a MongoDB connection string
47+
from an environment variable to avoid embedding credentials within
48+
source code.
49+
50+
.. code-block:: shell
51+
52+
go get github.com/joho/godotenv
53+
4254
Create a MongoDB Cluster
4355
------------------------
4456

0 commit comments

Comments
 (0)