format

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSV

type CSV struct{}

CSV is struct for csv format.

func (*CSV) GetFormatedText

func (c *CSV) GetFormatedText(songs []*song.Song) string

GetFormatedText returns formated text.

type Format

type Format interface {
	GetFormatedText(songs []*song.Song) string
}

Format is interface of formmatter.

type JSON

type JSON struct{}

JSON is struct for json format.

func (*JSON) GetFormatedText

func (j *JSON) GetFormatedText(songs []*song.Song) string

GetFormatedText returns formated text.

type SearchGPM added in v0.4.6

type SearchGPM struct{}

SearchGPM is struct for Google Play Music search.

func (*SearchGPM) GetFormatedText added in v0.4.6

func (searchGPM *SearchGPM) GetFormatedText(songs []*song.Song) string

GetFormatedText returns formatted text.

type SearchGoogle

type SearchGoogle struct{}

SearchGoogle is struct for Google search.

func (*SearchGoogle) GetFormatedText

func (searchGoogle *SearchGoogle) GetFormatedText(songs []*song.Song) string

GetFormatedText returns formatted text.

type SearchYoutube added in v0.4.6

type SearchYoutube struct{}

SearchYoutube is struct for Youtube search.

func (*SearchYoutube) GetFormatedText added in v0.4.6

func (searchYoutube *SearchYoutube) GetFormatedText(songs []*song.Song) string

GetFormatedText returns formatted text.

type SearchYoutubeMusic added in v0.6.0

type SearchYoutubeMusic struct{}

SearchYoutubeMusic is struct for YouTube Music search.

func (*SearchYoutubeMusic) GetFormatedText added in v0.6.0

func (searchYoutubeMusic *SearchYoutubeMusic) GetFormatedText(songs []*song.Song) string

GetFormatedText returns formatted text.

type Standard

type Standard struct{}

Standard is struct for standard format.

func (*Standard) GetFormatedText

func (standard *Standard) GetFormatedText(songs []*song.Song) string

GetFormatedText returns formated text.

Jump to

Keyboard shortcuts

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