fileutil

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileHash

func FileHash(path string, isThorough bool) (string, error)

Types

type FileDigest

type FileDigest struct {
	FileName      string `json:"name"`
	FileExtension string `json:"ext"`
	FileSize      int64  `json:"size"`
	FileHash      string `json:"hash"`
}

func CalcFileDigest

func CalcFileDigest(filepath string, isThorough bool) (FileDigest, error)

func (FileDigest) String

func (f FileDigest) String() string

Jump to

Keyboard shortcuts

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