Documentation
¶
Overview ¶
Package md5 provides utility functions for generating MD5 hashes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBytes ¶
func FromBytes(data []byte) string
FromBytes returns an MD5 checksum string from data.
func FromFilePath ¶
func FromFilePath(filePath string) (string, error)
FromFilePath returns an MD5 checksum string for the file at filePath. It returns an empty string and an error if an error occurs opening the file.
func FromReader ¶
func FromReader(src io.Reader) (string, error)
FromReader returns an MD5 checksum string from data read from src. It returns an empty string and an error if an error occurs reading from src.
func FromString ¶
func FromString(str string) string
FromString returns an MD5 checksum string from str.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.