filehash

package
v0.0.0-...-b7a57f2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(file string) ([]byte, error)

func HashBytes

func HashBytes(r io.Reader) ([]byte, error)

func HashOfFile

func HashOfFile(path string) (string, error)

HashOfFile gives hash of a file content

Types

type H

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

func New

func New() *H

func (*H) AddBytes

func (h *H) AddBytes(r io.Reader) error

func (*H) AddFile

func (h *H) AddFile(file string) error

func (*H) Sum

func (h *H) Sum() []byte

Jump to

Keyboard shortcuts

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