swisshashing

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HashCmd = &cobra.Command{
		Use:   "hash",
		Short: "Use hast tool",
	}
)

Functions

This section is empty.

Types

type AlgorithmType

type AlgorithmType string
const (
	CRC32  AlgorithmType = "crc32"
	MD5    AlgorithmType = "md5"
	SHA1   AlgorithmType = "sha1"
	SHA256 AlgorithmType = "sha256"
	SHA384 AlgorithmType = "sha384"
	SHA512 AlgorithmType = "sha512"
	All    AlgorithmType = "all"
)

type HashFile

type HashFile struct {
	Path      string
	Algorithm AlgorithmType
	// contains filtered or unexported fields
}

func (*HashFile) Hash

func (hf *HashFile) Hash() (string, error)

func (*HashFile) Validated

func (hf *HashFile) Validated() error

Jump to

Keyboard shortcuts

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