files

package
v0.0.0-...-5ed39a9 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src string, dst string) error

func Entropy

func Entropy(path string) (float64, error)

Entropy 计算文件的熵值

func Exists

func Exists(src string) bool

func FileAnalyzer

func FileAnalyzer(path string)

func GetContent

func GetContent(src string) (string, error)

func HashMD5

func HashMD5(path string) (string, error)

HashMD5 计算文件的 MD5 哈希值

func HashSHA1

func HashSHA1(path string) (string, error)

HashSHA1 计算文件的 SHA1 哈希值

func HashSHA256

func HashSHA256(path string) (string, error)

HashSHA256 计算文件的 SHA256 哈希值

func HashSHA512

func HashSHA512(path string) (string, error)

HashSHA512 计算文件的 SHA512 哈希值

func IsDir

func IsDir(src string) (bool, error)

func IsFile

func IsFile(src string) (bool, error)

func Move

func Move(src string, dst string) error

func WriteContent

func WriteContent(filename string, text string) error

Types

type FileInfo

type FileInfo struct {
	Path string
	Size int64
}

Jump to

Keyboard shortcuts

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