You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.go 409B

1234567891011121314151617181920212223
  1. /* youtube-ma for MongoDB
  2. *
  3. * Based on https://github.com/CorentinB/youtube-ma */
  4. package main
  5. import (
  6. "encoding/json"
  7. "github.com/terorie/yt-mango/data"
  8. "github.com/terorie/yt-mango/classic"
  9. )
  10. func main() {
  11. v := data.Video{ID: "kj9mFK62c6E"}
  12. err := classic.Get(&v)
  13. if err != nil { panic(err) }
  14. jsn, err := json.MarshalIndent(v, "", "\t")
  15. if err != nil { panic(err) }
  16. println(string(jsn))
  17. }