Versions in this module Expand all Collapse all v0 v0.40.4 May 19, 2022 Changes in this version + const ByteLen + const StringLen + func IsValid(s string) bool + type Hash [ByteLen]byte + func MaybeParse(s string) (Hash, bool) + func New(data []byte) Hash + func Of(data []byte) Hash + func Parse(s string) Hash + func (h Hash) Compare(other Hash) int + func (h Hash) Equal(other Hash) bool + func (h Hash) IsEmpty() bool + func (h Hash) Less(other Hash) bool + func (h Hash) String() string + type HashSet map[Hash]struct + func NewHashSet(hashes ...Hash) HashSet + func (hs HashSet) Copy() HashSet + func (hs HashSet) Empty() + func (hs HashSet) Has(hash Hash) (has bool) + func (hs HashSet) Insert(hash Hash) + func (hs HashSet) InsertAll(other HashSet) + func (hs HashSet) Remove(hash Hash) + func (hs HashSet) Size() int + type HashSlice []Hash + func (rs HashSlice) Equals(other HashSlice) bool + func (rs HashSlice) HashSet() HashSet + func (rs HashSlice) Len() int + func (rs HashSlice) Less(i, j int) bool + func (rs HashSlice) Swap(i, j int)