~gjabell/go-yt

6cd4a2e7b8302ffb02d7fb6dca525183fb2202f3 — Galen Abell 4 months ago d004dd1 master 0.1.1
Properly convert int to string
1 files changed, 2 insertions(+), 1 deletions(-)

M yt.go
M yt.go => yt.go +2 -1
@@ 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