Documentation
¶
Overview ¶
Package input expands and classifies user-provided URL inputs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClassifiedURLs ¶
type ClassifiedURLs struct {
// Zvuk lists URLs classified as Zvuk provider inputs.
Zvuk []string
// Yandex lists URLs classified as Yandex Music provider inputs.
Yandex []string
// Unknown lists URLs that could not be classified to a known provider.
Unknown []string
}
ClassifiedURLs groups flattened input URLs by source provider.
func Classify ¶
func Classify(values []string) *ClassifiedURLs
Classify groups URLs by provider while preserving input order inside each group.
type Provider ¶
type Provider string
Provider identifies the external music source inferred from an input URL.
func ClassifyURL ¶
ClassifyURL infers provider from a URL host.
Click to show internal directories.
Click to hide internal directories.