Documentation ¶ Index ¶ func GetHash(f string) (string, error) func Sum(data []byte) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetHash ¶ func GetHash(f string) (string, error) func Sum ¶ added in v1.8.0 func Sum(data []byte) string Sum returns the SHA-256 hex digest of data. It is the in-memory counterpart of GetHash for content that never touches the filesystem, such as decrypted plaintext. Types ¶ This section is empty. Source Files ¶ View all Source files hash.go Click to show internal directories. Click to hide internal directories.