Skip to content

Commit 67be2f7

Browse files
authored
docs: add missing config profile lines (#4132)
* docs: add missing lines * docs: fix spacing issue
1 parent 9894b30 commit 67be2f7

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

docs/develop/go/temporal-client.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ tags:
3333
---
3434

3535
A [Temporal Client](/encyclopedia/temporal-sdks#temporal-client) enables you to communicate with the
36-
[Temporal Service](/temporal-service). Communication with a Temporal Service lets you perform actions such as
37-
starting Workflow Executions, sending Signals to Workflow Executions, sending Queries to Workflow Executions, getting
38-
the results of a Workflow Execution, and providing Activity Task Tokens.
36+
[Temporal Service](/temporal-service). Communication with a Temporal Service lets you perform actions such as starting
37+
Workflow Executions, sending Signals to Workflow Executions, sending Queries to Workflow Executions, getting the results
38+
of a Workflow Execution, and providing Activity Task Tokens.
3939

4040
This page shows you how to do the following using the Go SDK with the Temporal Client:
4141

@@ -207,6 +207,7 @@ variables or a configuration file, and then override specific options in code.
207207

208208
{/* SNIPSTART samples-apps-go-yourapp-gateway {"selectedLines": ["1-23", "32"]} */}
209209
[sample-apps/go/yourapp/gateway/main.go](https://github.com/temporalio/documentation/blob/main/sample-apps/go/yourapp/gateway/main.go)
210+
210211
```go
211212
package main
212213

@@ -234,6 +235,7 @@ func main() {
234235
// ...
235236
}
236237
```
238+
237239
{/* SNIPEND */}
238240

239241
</TabItem>
@@ -308,7 +310,7 @@ tls_client_key_path = "your-tls-client-key-path"
308310
With the connections options defined in the configuration file, use the `LoadClientOptions` function in the `envconfig`
309311
package to create a Temporal Client using the `cloud` profile as follows:
310312

311-
```go {13-15}
313+
```go {13-17}
312314
package main
313315

314316
import (
@@ -324,7 +326,8 @@ func main() {
324326
configFilePath := "/Users/yourname/.config/my-app/temporal.toml"
325327

326328
opts, err := envconfig.LoadClientOptions(envconfig.LoadClientOptionsRequest{
327-
ConfigFilePath: configFilePath,
329+
ConfigFilePath: configFilePath,
330+
ConfigFileProfile: "cloud",
328331
})
329332
if err != nil {
330333
log.Fatalf("Failed to load client config from custom file: %v", err)

0 commit comments

Comments
 (0)