Documentation
¶
Index ¶
- func BeforeDay2Time(strDate string) (time.Time, error)
- func BeforeHouse2Time(strDate string) (time.Time, error)
- func BeforeMinute2Time(strDate string) (time.Time, error)
- func CopyFile(dstName, srcName string) error
- func CutFile(dstName, srcName string) error
- func DateMonth2Time(strDate string) (time.Time, error)
- func DateYear2Time(strDate string) (time.Time, error)
- func FFExec(args ...string) (gjson.Result, error)
- func FormatSubtitleTime(duration float64) string
- func FormatTimeStr(t time.Time) string
- func GetAllFile(pathname string, whiteExt ...string) ([]string, error)
- func GetFileParam(path string, codec_type string) gjson.Result
- func IsNullOrEmpty(str string) bool
- func Isfile(filename string) bool
- func MakePath(filePath string) error
- func Md5BufHex(buf []byte) string
- func Md5FileHex(filePath string) string
- func NewFileLock(dir string) *fileLock
- func PathExists(path string) (bool, error)
- func PureFilename(name string) string
- func RandomString(n int, allowedChars ...[]rune) string
- func RefreshAccessTime(filePath string) error
- func Sha1FileHex(filePath string) string
- func Sha1Hex(buf []byte) string
- func SimilarText(first, second string) float64
- func Sm3FileHex(filePath string) string
- func Sm3Hex(buf []byte) string
- func Str2Time(strDate string) time.Time
- func TrimAllSpace(str string) string
- func TrimEnter(str string) string
- func Unzip(zipFile string, destDir string) error
- func UuidV1() string
- func UuidV4() string
- func Xor(data, key []byte) []byte
- func Yesterday2Time(strDate string) (time.Time, error)
- func ZipArchive(source, target, filter string) error
- func ZipArchiveFiles(files map[string]string, target string) error
- type FileStat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSubtitleTime ¶
将时长格式化为字幕时长格式 39.77 >> 00:00:39,770
func GetFileParam ¶
解析音视频文件参数 依赖 ffprobe
func NewFileLock ¶
func NewFileLock(dir string) *fileLock
func ZipArchive ¶
压缩为zip格式 source为要压缩的文件或文件夹, 绝对路径和相对路径都可以 target是目标文件 filter是过滤正则(Golang 的 包 path.Match)
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.