sha

package
v4.43.3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[T any](o T) string

New get sha1 value of given interface

Types

type StreamHasher added in v4.34.8

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

StreamHasher is a hasher encapsulation

func Stream added in v4.34.8

func Stream() StreamHasher

Stream create a new stream hasher

func (StreamHasher) Sum added in v4.34.8

func (s StreamHasher) Sum() string

Sum returns the result of hashing

func (StreamHasher) Write added in v4.34.8

func (s StreamHasher) Write(o any) StreamHasher

Write writes content to the hasher

Jump to

Keyboard shortcuts

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