Documentation
¶
Index ¶
- func ConvertModel(src, dst any)
- func CopyDir(fs embed.FS, src, dst string, replace bool, skip bool)
- func CreateLink(src, dst string) error
- func CreateMutiDir(filePath string) error
- func FileSize(path string) int64
- func FindScript(file, ext string) string
- func Format(format string, p map[string]any) string
- func IsDir(path string) bool
- func IsExist(path string) bool
- func MapToStruct(src map[string]any, dst any)
- func Md5Str(str string) string
- func RandString(n int) string
- func Rename(src, dst string) error
- func Sha256(src string) string
- func Sleep(second int, ctx context.Context) bool
- func StructToMap(src any) (dst map[string]any)
- func Tag(tagSrc string, airDate string, ep int) string
- func UTCToTimeStr(t1 string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertModel ¶
func ConvertModel(src, dst any)
func CreateLink ¶ added in v0.5.0
func FindScript ¶ added in v0.6.0
FindScript
@Description: 判断插件是否存在 @Description: 如ext='.py',插件名可以忽略'.py'后缀;插件名也可以使用上层文件夹名,会自动加载文件夹内部的 'main.py' @Description: 如设置为 'plugin/test',会依次尝试加载 'plugin/test/main.py', 'plugin/test.py' @param file string @param ext string @return string
func MapToStruct ¶ added in v0.7.4
func RandString ¶ added in v0.7.1
func Sleep ¶
Sleep
@Description: 信号计时器,每秒检测一次信号,避免长时间等待无法接收信号 @Description: 收到exit信号后,会返回true;倒计时结束,会返回false @param second int @param exit chan bool @return bool
func StructToMap ¶ added in v0.7.4
func UTCToTimeStr ¶ added in v0.4.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.