From a0d3d399c2e3d073c5e5d5760f9c75f33f2ca54a Mon Sep 17 00:00:00 2001 From: Faizan Bashir Date: Mon, 23 Oct 2023 19:02:17 +0530 Subject: [PATCH] Update search_by_keyword.go Fixed error in the service.Search.List parameter as []string value is required --- go/search_by_keyword.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/search_by_keyword.go b/go/search_by_keyword.go index 3c8f0b64..28c68806 100644 --- a/go/search_by_keyword.go +++ b/go/search_by_keyword.go @@ -30,7 +30,7 @@ func main() { } // Make the API call to YouTube. - call := service.Search.List("id,snippet"). + call := service.Search.List([]string{"id,snippet"}). Q(*query). MaxResults(*maxResults) response, err := call.Do()