diff --git a/src/code-examples/go/embedded-kv-v1.5.0/main.go b/src/code-examples/go/embedded-kv-v1.5.0/main.go index 47a98c831..ffd970d57 100644 --- a/src/code-examples/go/embedded-kv-v1.5.0/main.go +++ b/src/code-examples/go/embedded-kv-v1.5.0/main.go @@ -23,7 +23,7 @@ func main() { defer st.Close() // create a transaction - tx, err := st.NewTx(context.Background(), &store.TxOptions{Mode: store.ReadWriteTx}) + tx, err := st.NewTx(context.Background(), store.DefaultTxOptions().WithMode(store.ReadWriteTx)) handleErr(err) // ensure tx is closed (it won't affect committed tx)