Documentation ¶
Index ¶
- Variables
- func HashFile(file string, hashType string) string
- func Md5Bytes(bytes []byte) string
- func Md5Reader(reader io.Reader) string
- func NewDigestReader(reader io.Reader, digest ...string) io.Reader
- func Parse(digest string) []string
- func Sha256(values ...string) string
- func ToHashString(h hash.Hash) string
- type DigestReader
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func HashFile ¶
HashFile computes hash value corresponding to hashType, hashType is from constants.Md5Hash and constants.Sha256Hash.
Types ¶
Click to show internal directories.
Click to hide internal directories.