package
1.2.0
Repository: https://github.com/frankbraun/codechain.git
Documentation: pkg.go.dev

# Functions

Hash returns a SHA256 hash of all files and directories in the file tree rooted at root, except for the paths in excludePaths (the tree hash).
HashList returns the SHA256 hash of a list of entries.
List returns a list in lexical order of ListEntry structs of all files in the file tree rooted at root.
ListBytes returns a list in lexical order of newline separated hashes of all files in the file tree rooted at root in the canonical format, except for the paths in excludePaths (the tree list).
PrintList prints a list of (sorted) entries in the canonical tree list format.
SHA256 returns the SHA256 hash of the file with given path.

# Constants

EmptyHash is the hash of an empty directory tree (in hex notation).

# Structs

ListEntry describes a directory tree entry.