Documentation Index
Fetch the complete documentation index at: https://errand.nuvrel.dev/llms.txt
Use this file to discover all available pages before exploring further.
sha256(str) returns the lowercase hexadecimal SHA-256 hash of str.
Signature
Example
Compute a cache key based on a lock file’s contents so that the cache is invalidated when dependencies change:go.sum changes, which means the module cache is only reused when the exact same dependencies are declared.
Notes
- The output is always a 64-character lowercase hexadecimal string.
sha256hashes the string value passed to it. To hash a text file, pass it throughfile. For binary files, use a shell command likesha256suminstead.- For non-security use cases like cache keys,
md5is faster and produces a shorter hash.