Versions in this module Expand all Collapse all v1 v1.54.4 Nov 23, 2020 Changes in this version + var ErrUnsupported = errors.New("hash type not supported") + func Equals(src, dst string) bool + func Stream(r io.Reader) (map[Type]string, error) + func StreamTypes(r io.Reader, set Set) (map[Type]string, error) + func Width(hashType Type) int + type MultiHasher struct + func NewMultiHasher() *MultiHasher + func NewMultiHasherTypes(set Set) (*MultiHasher, error) + func (m *MultiHasher) Size() int64 + func (m *MultiHasher) Sums() map[Type]string + func (m *MultiHasher) Write(p []byte) (n int, err error) + type Set int + func NewHashSet(t ...Type) Set + func Supported() Set + func (h *Set) Add(t ...Type) Set + func (h Set) Array() (ht []Type) + func (h Set) Contains(t Type) bool + func (h Set) Count() int + func (h Set) GetOne() Type + func (h Set) Overlap(t Set) Set + func (h Set) String() string + func (h Set) SubsetOf(c Set) bool + type Type int + var CRC32 Type + var MD5 Type + var None Type + var SHA1 Type + var Whirlpool Type + func RegisterHash(name string, width int, newFunc func() hash.Hash) Type + func (h *Type) Set(s string) error + func (h Type) String() string + func (h Type) Type() string