go example?

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
Hannah Hunter 2023-03-13 14:53:19 -04:00
parent 22d814de43
commit 4cc7808cc7
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ import (
// code
err = client.SaveState(ctx, STATE_STORE_NAME, "order_1", []byte(strconv.Itoa(orderId)), nil)
metadata := map[string]string{
"ttlInSeconds": "120"
}
```
To launch a Dapr sidecar and run the above example application, you'd then run a command similar to the following: