Skip to content

Commit cde5d91

Browse files
committed
fix the guides
1 parent e65cb20 commit cde5d91

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templates/go/guides/search/saveImageClassifications.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func saveImageClassifications() {
2727

2828
images := []Image{}
2929

30-
err = client.BrowseObjects("<YOUR_INDEX_NAME>", search.BrowseParamsObject{}, search.WithAggregator(func(res any, err error) {
30+
err = client.BrowseObjects(context.Background(), "<YOUR_INDEX_NAME>", search.BrowseParamsObject{}, search.WithAggregator(func(res any, err error) {
3131
if err != nil {
3232
panic(err)
3333
}

templates/go/guides/search/saveImageClassificationsAndSettings.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func saveImageClassificationsAndSettings() {
2727

2828
images := []Image{}
2929

30-
err = client.BrowseObjects("<YOUR_INDEX_NAME>", search.BrowseParamsObject{}, search.WithAggregator(func(res any, err error) {
30+
err = client.BrowseObjects(context.Background(), "<YOUR_INDEX_NAME>", search.BrowseParamsObject{}, search.WithAggregator(func(res any, err error) {
3131
if err != nil {
3232
panic(err)
3333
}

templates/go/guides/search/savePopularRecords.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func savePopularRecords() {
1313

1414
records := []map[string]any{ { /* Your records */ } }
1515

16-
err = client.BrowseObjects("<YOUR_INDEX_NAME>", search.BrowseParamsObject{}, search.WithAggregator(func(res any, err error) {
16+
err = client.BrowseObjects(context.Background(), "<YOUR_INDEX_NAME>", search.BrowseParamsObject{}, search.WithAggregator(func(res any, err error) {
1717
if err != nil {
1818
panic(err)
1919
}

0 commit comments

Comments
 (0)