youtube

package
v0.0.0-...-2ac31f6 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Search(doc *html.Node, kind, class string) ([]*html.Node, error)

Types

type API

type API interface {
	GetYouTubeChannel(id string) (Channel, error)
}

func New

func New() API

type Channel

type Channel struct {
	ID      string `json:"id"`
	URL     string `json:"url"`
	Live    bool   `json:"live"`
	LiveURL string `json:"live_url"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (Client) GetYouTubeChannel

func (c Client) GetYouTubeChannel(id string) (Channel, error)

type Getter

type Getter interface {
	Get(url string) (resp *http.Response, err error)
}

Jump to

Keyboard shortcuts

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