models

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lyrics

type Lyrics struct {
	PublicId   string `json:"-"`
	SongName   string `json:"song_name"`
	ArtistName string `json:"artist_name,omitempty"`
	AlbumName  string `json:"album_name,omitempty"`
	// Parts holds the lines of the lyrics.
	Parts []string `json:"parts"`
	// Synced similar to [Lyrics.Parts] but instead of plain lines, it has time stamps syncs for the line.
	Synced map[string]string `json:"synced,omitempty"`
}

Lyrics holds lyrics fetched by a provider.

func (*Lyrics) String

func (l *Lyrics) String() string

String returns the lyrics' lines as one single string, separated by line feed.

Jump to

Keyboard shortcuts

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