Documentation ¶
Index ¶
Constants ¶
View Source
const VideoBaseUrl string = "https://www.youtube.com/watch?v="
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Id string Title string Description string Thumbnails Thumbnails }
Channel is a type with channel information.
type Playlist ¶
type Playlist struct { Id string Title string Description string Channel *Channel Thumbnails Thumbnails }
Playlist is a struct with playlist information
type SearchOptions ¶
SearchOptions is a struct with the search option information
type SearchResult ¶
func Search ¶
func Search(opts SearchOptions) (results *SearchResult, err error)
Search è una funzione che data una query e un limit effettua una ricerca e torna una slice di video info
type Thumbnails ¶
type Thumbnails struct {
youtube.ThumbnailDetails
}
type Video ¶
type Video struct { Id string Url string Title string Description string Thumbnails Thumbnails PublishedAt string Channel *Channel Options []*VideoOptions // contains filtered or unexported fields }
Video is a type that contains video information
func NewVideoById ¶
NewVideoById is a function that creates a new Video instance by id
func NewVideoByUrl ¶
NewVideoByUrl is a function that creates a new Video instance by url
func (*Video) GetDirectLink ¶
func (v *Video) GetDirectLink(opts *VideoOptions) (string, error)
GetDirectLink is a Video method that returns the direct link of the video
type VideoOptions ¶
VideoOptions are option of video
Source Files ¶
Click to show internal directories.
Click to hide internal directories.