Skip to content

Commit 6141ba3

Browse files
committed
DOCSP-49972 toc tree and code example
1 parent f7aa29b commit 6141ba3

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

source/fundamentals/connections.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Connections
1010
.. toctree::
1111

1212
Connection Guide </fundamentals/connections/connection-guide>
13+
Choose a Connection Target </fundamentals/connections/connection-target>
1314
Connection Options </fundamentals/connections/connection-options>
1415
Network Compression </fundamentals/connections/network-compression>
1516
Configure TLS </fundamentals/connections/tls>

source/fundamentals/connections/connection-target.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44
Choose a Connection Target
55
==========================
66

7+
.. facet::
8+
:name: genre
9+
:values: tutorial
10+
11+
.. meta::
12+
:description: Learn how to select connection targets for the MongoDB Go Driver.
13+
:keywords:
14+
15+
.. contents:: On this page
16+
:local:
17+
:backlinks: none
18+
:depth: 2
19+
:class: singlecol
20+
721
Overview
822
--------
923

@@ -13,7 +27,7 @@ In this guide, you can learn how to use a connection string and a
1327
.. tip::
1428

1529
To learn more about how to retrieve or format your connection string, see
16-
the :ref:`Connection URI <connection-guide>` guide in
30+
the :ref:`Connection URI <golang-connection-uri>` guide in
1731
the Go Connection Guide.
1832

1933
Atlas
@@ -38,3 +52,7 @@ code also uses the ``server_api`` field to specify a {+stable-api+} version.
3852

3953
.. _go-connection-example-code:
4054

55+
.. literalinclude:: /includes/fundamentals/code-snippets/srv.go
56+
:language: go
57+
58+

0 commit comments

Comments
 (0)