music

package
v0.0.0-...-b39ccf7 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format int
const (
	Opus Format = iota
	Mp3
	M4a
	Wav
	Aac
	Vorbis
	Flac
)

type Song

type Song struct {
	ID     string        `json:"id"`
	Name   string        `json:"name"`
	URL    string        `json:"url"`
	Length time.Duration `json:"length"`
	File   string        `json:"file"`
	Format Format        `json:"format"`
}

func FetchFromURL

func FetchFromURL(url string, playlist bool) (songs []*Song, err error)

Jump to

Keyboard shortcuts

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