report

package
v0.0.0-...-e070e60 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(data Data) (string, error)

Generate a report.

func GenerateFavorites

func GenerateFavorites(data Data) (string, error)

GenerateFavorites generates a favorites report.

Types

type Channel

type Channel struct {
	Title       string
	Favorite    bool
	Subscribers uint64

	Videos []Video
}

Channel is a single channel.

type Data

type Data struct {
	Timestamp   time.Time
	Generations []Generation
}

Data is the input go generate the report.

type Generation

type Generation struct {
	Title    string
	Channels []Channel
}

Generation is a collection of YT channels.

type Video

type Video struct {
	Title           string
	TitleTranslated string
}

Video is a single video in a channel.

Jump to

Keyboard shortcuts

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