youtube

package
v0.0.0-...-ee611d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Yservice *youtube.Service
)

Functions

func ClientInit

func ClientInit()

ClientInit initialize a youtube service. Assign Yservice global variable to fetched service

func SearchByKeywords

func SearchByKeywords(keyword string) *[]Video

SearchByKeyword let you search a youtube video from keywords. Takes a keyword as argument. Return a pointer of an Video array.

Types

type Video

type Video struct {
	Id    string
	Title string
}

Video object to reflect the data gathered from the api.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL