packages

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileSize

func GetFileSize(filename string) (string, error)

GetFileSize returns the size of a file in KB, or MB if > 1024 KB.

func NewPackageFile

func NewPackageFile(filename string) (*types.PackageFile, error)

func SizeToString

func SizeToString(size int64) string

Types

type HashManager

type HashManager struct {
	// contains filtered or unexported fields
}

HashManager struct to manage hash values

func NewHashManager

func NewHashManager(filename string) (*HashManager, error)

NewHashManager creates a new HashManager

func (*HashManager) Hash

func (hm *HashManager) Hash() error

func (*HashManager) HexDigest

func (hm *HashManager) HexDigest() *Hexdigest

type Hexdigest

type Hexdigest struct {
	// contains filtered or unexported fields
}

Hexdigest struct to hold the hashes

Jump to

Keyboard shortcuts

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