parser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrobParser

type GrobParser struct {
}

GrobParser is the implementation of a song parser for the site gr-oborona.ru.

func NewGrobParser

func NewGrobParser() *GrobParser

NewGrobParser returns a pointer to the new instance of GrobParser.

func (*GrobParser) ParsePreviews

func (p *GrobParser) ParsePreviews(input string) ([]song.Metadata, error)

ParsePreviews parses the input html and returns a slice of song.Metadata instances or an error.

func (*GrobParser) ParseSong

func (p *GrobParser) ParseSong(input string) (*song.Song, error)

ParseSong parses the input html and returns a pointer to the new instance of song.Song or an error.

Jump to

Keyboard shortcuts

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