[PATCH] prompt now displays videoid
Export this patch
Signed-off-by: Yosl <yosl@seattlemesh.net>
---
main.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.go b/main.go
index a81ee79..d0aadc2 100644
--- a/main.go
+++ b/main.go
@@ -67,14 +67,14 @@ func main() {
Size: 20,
}
- _, result, err := prompt.Run()
+ i, _, err := prompt.Run()
if err != nil {
fmt.Printf("Prompt failed %v\n", err)
return
}
- fmt.Printf("You choose %q\n", result)
+ fmt.Printf("You choose %s\n", i+1, res[i].VideoId)
}
func initClient() string {
--
2.20.1