lrc

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT-0 Imports: 5 Imported by: 0

Documentation

Overview

Package lrc implements an [LRC format] parser. [LRC format]: https://en.wikipedia.org/wiki/LRC_(file_format)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(data []byte) ([]Duration, []Text, error)

Parse parses a byte slice of LRC lyrics.

func ParseReader added in v0.5.2

func ParseReader(reader io.Reader) ([]Duration, []Text, error)

ParseReader parses the reader according to the [LRC format].

func ParseString

func ParseString(text string) ([]Duration, []Text, error)

ParseString parses a string of LRC lyrics.

Types

type Duration added in v0.4.0

type Duration = time.Duration

Duration is time.Duration.

type Text added in v0.4.0

type Text = string

Text is [string].

Jump to

Keyboard shortcuts

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