hash

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compute

func Compute(obj interface{}) (string, error)

Compute generates an unique hash/string for the object pass to it. with sha256

func ComputeHashDir added in v0.67.0

func ComputeHashDir(dirLocation, prefix string) (string, error)

computes has for the given directory, tasks the directory and files recursively "prefix" used internally to produce constant base path, actual location will be replaced with this prefix on hash calculation

func ComputeMd5 added in v0.68.0

func ComputeMd5(obj interface{}) (string, error)

Compute generates an unique hash/string for the object pass to it. with md5

Types

This section is empty.

Jump to

Keyboard shortcuts

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