util

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateSimilar

func EvaluateSimilar(str1, str2 string) bool

EvaluateSimilar 评估两个字符串的相似度

func GenerateRandString

func GenerateRandString(length int) string

func IsPortInUse added in v1.0.1

func IsPortInUse(port int) bool

IsPortInUse 检测端口是否被占用

Types

type MP3MetaInfo

type MP3MetaInfo struct {
	//标题
	Title string
	//艺术家
	Artist string
	//专辑
	Album string
	//所属歌单名称
	PlayListName string
	//文件名称
	FileName string
}

MP3MetaInfo mp3类

func ExtractMp3FromPath

func ExtractMp3FromPath(mp3Path string) (MP3MetaInfo, error)

ExtractMp3FromPath 根据路径解析MP3元信息

Jump to

Keyboard shortcuts

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