utils

package
v0.0.0-...-d88334e Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomString

func GenerateRandomString(length int) string

GenerateRandomString 生成指定长度的随机字符串

func GetMD5Value

func GetMD5Value(data []byte) string

func GetMD5ValueFile

func GetMD5ValueFile(filepath string) (string, error)

func HandleHexFlag

func HandleHexFlag(sourceFilePath string)

HandleHexFlag 读取文件并计算MD5值,并将结果保存为HEX文件

func IsValidMD5

func IsValidMD5(data string) bool

func ReadFileToBytesWithMultiThread

func ReadFileToBytesWithMultiThread(filePath string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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