Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update search_by_keyword.go
Fixed error in the service.Search.List parameter as []string value is required
  • Loading branch information
faizanbashir authored Oct 23, 2023
commit a0d3d399c2e3d073c5e5d5760f9c75f33f2ca54a
2 changes: 1 addition & 1 deletion go/search_by_keyword.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down