utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

CopyFile 复制文件

func CreateTempDir

func CreateTempDir(prefix string) (string, error)

CreateTempDir 创建临时目录

func EnsureDir

func EnsureDir(dir string) error

EnsureDir 确保目录存在

func FileExists

func FileExists(path string) bool

FileExists 检查文件是否存在

func GetArch

func GetArch() string

GetArch 获取当前架构

func GetExecutablePath

func GetExecutablePath() (string, error)

GetExecutablePath 获取当前可执行文件路径

func GetPlatform

func GetPlatform() string

GetPlatform 获取当前平台

func RemoveFile

func RemoveFile(path string) error

RemoveFile 删除文件

func RemoveTempDir

func RemoveTempDir(dir string) error

RemoveTempDir 删除临时目录

func VerifyFileMD5

func VerifyFileMD5(filePath, expectedMD5 string) error

VerifyFileMD5 验证文件MD5

Types

This section is empty.

Jump to

Keyboard shortcuts

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