From c16f150f2895ed379bcffe6e8a3e07dd19923e0b Mon Sep 17 00:00:00 2001 From: Filip Boye-Kofi Date: Wed, 17 Jan 2024 22:13:05 +0100 Subject: [PATCH] fix: wrapped string into slice to pass into List func --- go/quickstart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/quickstart.go b/go/quickstart.go index dc5d83d3..c61e8353 100644 --- a/go/quickstart.go +++ b/go/quickstart.go @@ -105,7 +105,7 @@ func handleError(err error, message string) { } func channelsListByUsername(service *youtube.Service, part string, forUsername string) { - call := service.Channels.List(part) + call := service.Channels.List([]string{part}) call = call.ForUsername(forUsername) response, err := call.Do() handleError(err, "")