cli

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	ID    string `json:"id"`
	Title string `json:"title"`
	URL   string `json:"url"`
}

A Channel represents the channel of YouTube.

type Client

type Client struct {
	Name    string
	Version string
	// contains filtered or unexported fields
}

A Client represents the client of CLI.

func NewClient

func NewClient(name string, version string) (*Client, error)

NewClient returns a new CLI client.

func (*Client) Run

func (c *Client) Run(args []string)

Run executes a client tasks and returns an exit code.

type Video

type Video struct {
	Channel     *Channel `json:"channel"`
	ID          string   `json:"id"`
	ObjectID    string   `json:"objectID"`
	PublishedAt int64    `json:"publishedAt"`
	Title       string   `json:"title"`
	URL         string   `json:"url"`
}

A Video represents the video of YouTube.

Jump to

Keyboard shortcuts

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