Skip to content

Commit dfc74fa

Browse files
author
Chris Cho
authored
DOCSP-25298: Use cse golang build constraint (#1883)
* DOCSP-25298: Use cse golang build constraint * fix indentation * fix indentation * move notice to earlier step
1 parent c3311ee commit dfc74fa

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

source/includes/queryable-encryption/quick-start/key-vault-index.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ Create a unique index on the ``keyAltNames`` field in your
3838
.. tab::
3939
:tabid: go
4040

41+
.. important::
42+
43+
When building or running the Golang code in this guide using
44+
``go build`` or ``go run``, always include the ``cse`` build
45+
constraint to enable {+qe+}. See the following shell
46+
command for an example of including the build constraint:
47+
48+
.. code-block:: bash
49+
50+
go run -tags cse insert-encrypted-document.go
51+
4152
.. literalinclude:: /includes/generated/in-use-encryption/queryable-encryption/go/local/reader/make-data-key.go
4253
:start-after: start-create-index
4354
:end-before: end-create-index
@@ -53,4 +64,4 @@ Create a unique index on the ``keyAltNames`` field in your
5364
:end-before: end-create-index
5465
:language: csharp
5566
:dedent:
56-
:caption: MakeDataKey.cs
67+
:caption: MakeDataKey.cs

source/includes/tutorials/language-id.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,13 @@
4040
// You are viewing the Golang driver code examples.
4141
// Use the dropdown menu to select a different driver.
4242
43+
.. important::
44+
45+
When building or running the Golang code in this guide using
46+
``go build`` or ``go run``, always include the ``cse`` build
47+
constraint to enable {+csfle-abbrev+}. See the following shell
48+
command for an example of including the build constraint:
49+
50+
.. code-block:: bash
51+
52+
go run -tags cse insert-encrypted-document.go

0 commit comments

Comments
 (0)