Skip to content

Commit 33c88ef

Browse files
kumarlokeshblink1073
authored andcommitted
Updated README.md for highlighting Go syntax (mongodb#1426)
(cherry picked from commit 6c39f4f)
1 parent 29bf861 commit 33c88ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ The Go Driver supports the following compression algorithms:
161161

162162
Compression can be enabled using the `compressors` parameter on the connection string or by using [`ClientOptions.SetCompressors`](https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo/options#ClientOptions.SetCompressors):
163163

164-
```
164+
```go
165165
opts := options.Client().ApplyURI("mongodb://localhost:27017/?compressors=snappy,zlib,zstd")
166166
client, _ := mongo.Connect(context.TODO(), opts)
167167
```
168168

169-
```
169+
```go
170170
opts := options.Client().SetCompressors([]string{"snappy", "zlib", "zstd"})
171171
client, _ := mongo.Connect(context.TODO(), opts)
172172
```

0 commit comments

Comments
 (0)