Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDos2UnixHash ¶
NewDos2UnixHash returns a hash.Hash that wraps a hash.Hash while replacing '\r\n' with '\n' in the input. NOTE: calling Sum() will write '\r' if it was the last character seen. If an '\n' is written after the call to Sum() the output will be incorrect. Recommended to not write after Sum() is called.
Types ¶
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
Hash is a generic hash built from a hash.Hash and path transform function
func (*Hash) IsValidKey ¶
IsValidKey return true if 'key' is a valid key to the hash
Click to show internal directories.
Click to hide internal directories.