lrc

package
v0.0.0-...-fa2fe22 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Meta  Meta   `json:"meta"`
	Lines []Line `json:"lines"`
}

func NewDocument

func NewDocument() Document

func (*Document) String

func (lrc *Document) String() (result string)

type Line

type Line struct {
	Time string `json:"time"`
	Text string `json:"text"`
}

func (*Line) String

func (meta *Line) String() (result string)

type Meta

type Meta struct {
	Title     string   `json:"title" lrc:"ti"`
	Album     string   `json:"album" lrc:"al"`
	Artist    string   `json:"artist" lrc:"ar"`
	Cover     string   `json:"cover" lrc:"cv"`
	Editor    []string `json:"editor" lrc:"re"`
	Author    string   `json:"author" lrc:"by"`
	Length    string   `json:"length" lrc:"length"`
	Offset    string   `json:"offset" lrc:"offset"`
	Relations []string `json:"relations" lrc:"rel"`
}

func (*Meta) String

func (meta *Meta) String() (result string)

Jump to

Keyboard shortcuts

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