util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(c *exec.Cmd, msg string) (e error)

执行命令过程中可以循环打印消息

func ExecCommand4Ytdlp

func ExecCommand4Ytdlp(c *exec.Cmd)

func ExecCommandWithBar

func ExecCommandWithBar(c *exec.Cmd, totalFrame string) (e error)

执行命令过程中可以循环打印消息

func GetAllFileInfoFast

func GetAllFileInfoFast(dir, pattern string) ([]string, error)

func GetFrameNum

func GetFrameNum(s string) (int, error)

func GetVideoName

func GetVideoName(c *exec.Cmd) (name string)

func IsExist

func IsExist(folderPath string) bool

func IsExistCmd

func IsExistCmd(cmds ...string) bool

func ReadByLine

func ReadByLine(fp string) []string

func ReadInSlice

func ReadInSlice(fp string) []string

func WriteByLine

func WriteByLine(fp string, s []string)

按行写文件

func WriteByLineOnce

func WriteByLineOnce(fp string, s []string)

按行写文件 截断

Types

This section is empty.

Jump to

Keyboard shortcuts

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