Documentation ¶
Index ¶
- Variables
- func ByteSliceToString(bs []byte) string
- func Convert(s string) string
- func DelFile(path string) bool
- func DownloadFile(url, path string, limit int64, headers map[string]string) error
- func DownloadFileMultiThreading(url, path string, limit int64, threadCount int, headers map[string]string) error
- func FatalError(err error)
- func GetBytes(url string) ([]byte, error)
- func IsAMRorSILK(b []byte) bool
- func MustMarshal(t interface{}) string
- func MustMd5(text string) string
- func NeteaseMusicSongInfo(id string) (gjson.Result, error)
- func PathExists(path string) bool
- func QQMusicSongInfo(id string) (gjson.Result, error)
- func RandomString(randGen *rand.Rand, len int) string
- func RandomStringRange(randGen *rand.Rand, length int, str string) string
- func ReadAllText(path string) string
- func SafeGo(fn func())
- func ToGlobalId(code int64, msgId int32) int32
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HEADER_AMR = []byte("#!AMR") HEADER_SILK = []byte("\x02#!SILK_V3") )
View Source
var ( Proxy string ErrOverSize = errors.New("oversize") UserAgent = "" /* 130-byte string literal not displayed */ )
Functions ¶
func ByteSliceToString ¶
func DownloadFile ¶
func FatalError ¶
func FatalError(err error)
func IsAMRorSILK ¶
func MustMarshal ¶
func MustMarshal(t interface{}) string
func NeteaseMusicSongInfo ¶
NeteaseMusicSongInfo 通过给定id在wdd音乐上查找曲目信息
func PathExists ¶
func QQMusicSongInfo ¶
QQMusicSongInfo 通过给定id在QQ音乐上查找曲目信息
func ReadAllText ¶
func ToGlobalId ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.