common

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UCStr       = "uc"
	AliyunStr   = "aliyun"
	QuarkStr    = "quark"
	Pan115Str   = "115"
	Pan123Str   = "123pan"
	TianyiStr   = "tianyi"
	XunleiStr   = "xunlei"
	BaiduStr    = "baidu"
	NotFoundStr = "notfound"
)

定义网盘服务类型(使用字符串常量,避免与ServiceType冲突)

Variables

This section is empty.

Functions

func ExtractShareIdString

func ExtractShareIdString(urlStr string) (string, string)

提取分享码和服务类型(重命名避免冲突)

func Test

func Test()

主函数

Types

type CheckResult

type CheckResult struct {
	URL    string
	Status bool
}

检查结果结构

func CheckURL

func CheckURL(urlStr string) (CheckResult, error)

检查URL有效性

Jump to

Keyboard shortcuts

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