From 6cd4a2e7b8302ffb02d7fb6dca525183fb2202f3 Mon Sep 17 00:00:00 2001 From: Galen Abell Date: Tue, 29 Jun 2021 23:21:38 +0200 Subject: [PATCH] Properly convert int to string --- yt.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt.go b/yt.go index 37caf9d..de0466d 100644 --- a/yt.go +++ b/yt.go @@ -3,6 +3,7 @@ package yt import ( "net/http" "net/url" + "strconv" ) // SearchResult contains metadata about a Youtube video. @@ -43,7 +44,7 @@ func Search(query string, page int) ([]SearchResult, error) { url, err := makeURL(searchURL, map[string]string{ "search_query": query, "sp": searchParams, - "page": string(page), + "page": strconv.Itoa(page), }) if err != nil { return nil, err -- 2.38.5