youtube

package
v0.0.0-...-2927688 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateVideoScore

func CalculateVideoScore(title, query string) (score int)

Types

type ByScore

type ByScore []YoutubeVideo

func (ByScore) Len

func (s ByScore) Len() int

func (ByScore) Less

func (s ByScore) Less(i, j int) bool

func (ByScore) Swap

func (s ByScore) Swap(i, j int)

type YoutubeVideo

type YoutubeVideo struct {
	VideoID    string
	VideoTitle string
	VideoScore int
}

func YoutubeSearch

func YoutubeSearch(query, developerKey string, maxResults int64) (videos []YoutubeVideo)

func (YoutubeVideo) String

func (y YoutubeVideo) String() string

Jump to

Keyboard shortcuts

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