3333---
3434
3535A [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
4040This 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
211212package 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"
308310With the connections options defined in the configuration file, use the `LoadClientOptions` function in the `envconfig`
309311package to create a Temporal Client using the `cloud` profile as follows:
310312
311- ```go {13-15 }
313+ ```go {13-17 }
312314package main
313315
314316import (
@@ -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