util

package
v0.0.0-...-53ca941 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AlbumMatch

func AlbumMatch(u string) (string, string, bool)

func ArtistMatch

func ArtistMatch(u string) (string, string, bool)

func Bool2Str

func Bool2Str(b bool) string

func CopyHttpResponseBody

func CopyHttpResponseBody(r *http.Response, w io.Writer) error

func ExternalPlay

func ExternalPlay(song string) error

ExternalPlay play song by external player

func GenRandomBytes

func GenRandomBytes(size int) (blk []byte, err error)

func GetBaseURL

func GetBaseURL(c *gin.Context) (baseURL string)

func GetExtName

func GetExtName(uri string) (ext string, mimetype string)

func GetHttpClient

func GetHttpClient() *http.Client

func GuessProvider

func GuessProvider(u string) (string, bool)

func ParseJson

func ParseJson(data []byte) map[string]interface{}

func PlaylistMatch

func PlaylistMatch(u string) (string, string, bool)

func ReadHttpResponseBody

func ReadHttpResponseBody(r *http.Response) (b []byte, err error)

func SingleSongMatch

func SingleSongMatch(u string) (string, string, bool)

func ToJson

func ToJson(object interface{}) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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