add debug log

This commit is contained in:
Jay 2019-03-27 13:35:32 +00:00
parent b98aab2d0d
commit d299bbe24b

View File

@ -113,7 +113,9 @@ func QueryYoutubeName(id string) (n string, err error) {
}
for _, v := range apiRes.Items {
fmt.Println("data :::: ", v)
if v.ID == id {
fmt.Println("id match ::: ", v.Sinppet)
return v.Sinppet.Title, nil
}
}