publicfunc

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToString

func ConvertToString(src string, srcCode string, tagCode string) string

转码

func FormatSize

func FormatSize(fileSize uint64) (size string)

格式化大小

func GetFileMd5

func GetFileMd5(filedata []byte) string

获取字符串的md5

func GetFileMd5f

func GetFileMd5f(pfile *os.File) (string, error)

获取文件md5

func GetFileSha1f

func GetFileSha1f(pfile *os.File) (string, error)

获取文件sha1

func GetFileSha256f

func GetFileSha256f(pfile *os.File) (string, error)

获取文件sha256

func UTF16ToString

func UTF16ToString(s []uint16) string

Types

type FILECONFIG

type FILECONFIG struct {
	//扫描路径
	Path string
	//扫描文件类型
	Filetype string
	//扫描深度 -1 全部扫描
	Depth int32
}

Jump to

Keyboard shortcuts

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