go example from yaron

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
This commit is contained in:
Hannah Hunter 2023-03-16 17:47:54 -04:00
parent 4cc7808cc7
commit 026ce895f5
1 changed files with 3 additions and 3 deletions

View File

@ -97,9 +97,9 @@ import (
// code // code
err = client.SaveState(ctx, STATE_STORE_NAME, "order_1", []byte(strconv.Itoa(orderId)), nil) md := map[string]string{"ttlInSeconds": "120"}
metadata := map[string]string{ if err := client.SaveState(ctx, store, "key1", []byte("hello world"), md); err != nil {
"ttlInSeconds": "120" panic(err)
} }
``` ```