Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Jan 20, 2025
1 parent bc88940 commit 0099bc9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions go/api/base_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,10 @@ func (client *baseClient) XPendingWithOptions(
//
// Example:
//
// client.XGroupCreate("mystream", "mygroup", "0-0")
// ok, err := client.XGroupCreate("mystream", "mygroup", "0-0")
// if ok != "OK" || err != nil {
// // handle error
// }
//
// [valkey.io]: https://valkey.io/commands/xgroup-create/
func (client *baseClient) XGroupCreate(key string, group string, id string) (string, error) {
Expand All @@ -2039,7 +2042,10 @@ func (client *baseClient) XGroupCreate(key string, group string, id string) (str
// Example:
//
// opts := options.NewXGroupCreateOptions().SetMakeStream()
// client.XGroupCreateWithOptions("mystream", "mygroup", "0-0", opts)
// ok, err := client.XGroupCreateWithOptions("mystream", "mygroup", "0-0", opts)
// if ok != "OK" || err != nil {
// // handle error
// }
//
// [valkey.io]: https://valkey.io/commands/xgroup-create/
func (client *baseClient) XGroupCreateWithOptions(
Expand Down

0 comments on commit 0099bc9

Please sign in to comment.