songs

package
v0.0.0-...-a5d261b Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemeSongs

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

MemeSongs implements Songs and holds meme songs urls

func NewMemeSongs

func NewMemeSongs() *MemeSongs

NewMemeSongs returns a new MemeSongs instance

func (*MemeSongs) GetRandomSong

func (m *MemeSongs) GetRandomSong() string

GetRandomSong returns a string that has a random meme song YT URL

func (*MemeSongs) GetSong

func (m *MemeSongs) GetSong(key string) string

GetSong returns a song with its name

type Songs

type Songs interface {
	GetRandomSong() string
	GetSong(key string) string
}

Songs interface represents a song list of a certain type

Jump to

Keyboard shortcuts

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