api-samples icon indicating copy to clipboard operation
api-samples copied to clipboard

Update search_by_keyword.go

Open faizanbashir opened this issue 2 years ago • 1 comments

Fixed error in the service.Search.List parameter as []string value is required.

The code returns the below error:

./search_by_keywords.go:33:30: cannot use "id,snippet" (untyped string constant) as []string value in argument to service.Search.List

I have update the parameter to a []string{"id, snippet"} which has fixed the error.

faizanbashir avatar Oct 23 '23 13:10 faizanbashir

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Oct 23 '23 13:10 google-cla[bot]