tools

package
v0.0.0-...-4466fc3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	V = regexp.MustCompile(`(http:|https:)?\/\/(www\.)?(youtube.com|youtu.be)\/(watch)?(\?v=)?(\S+)?`)
	S = regexp.MustCompile(`(http:|https:)?\/\/(www\.)?(open.spotify.com|spotify.com)\/(watch)?(\?v=)?(\S+)?`)
)

Functions

func DeleteSong

func DeleteSong(song int) error

func ErrControl

func ErrControl(c echo.Context, origin, url string, reg *regexp.Regexp) (output bool)

func MoveSong

func MoveSong()

func PlayAllSongs

func PlayAllSongs(e *echo.Echo) error

func PlaySongOneByOne

func PlaySongOneByOne(song uint32, e *echo.Echo) error

Types

type Delete

type Delete struct {
	Delete int
}

type Nsong

type Nsong struct {
	Nsong int
}

type Url

type Url struct {
	Url string
}

Jump to

Keyboard shortcuts

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