fileutil

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 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)

func FileSize added in v1.3.8

func FileSize(filepath string) (int64, 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